isundil 10 жил өмнө
parent
commit
9e58669875
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  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);
 	asprintf(&result, "%s/%s", cwd, *path);
 	if (_free)
 	if (_free)
 		free(*path);
 		free(*path);
+	free(cwd);
 	*path = result;
 	*path = result;
 }
 }