Explorar o código

Fixed mem leak

isundil %!s(int64=10) %!d(string=hai) anos
pai
achega
9e58669875
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 }