Ver Fonte

Fixed mem leak

isundil há 10 anos atrás
pai
commit
9e58669875
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/pathutil.c

+ 1 - 0
src/pathutil.c

@@ -12,6 +12,7 @@ void find_fullpath(char **path, int _free)
 	asprintf(&result, "%s/%s", cwd, *path);
 	if (_free)
 		free(*path);
+	free(cwd);
 	*path = result;
 }