Browse Source

Plug a memory leak

pre-master-46
Holger Vogt 2 years ago
parent
commit
14bb63490c
  1. 3
      src/frontend/inpcom.c

3
src/frontend/inpcom.c

@ -9504,7 +9504,7 @@ int add_to_sourcepath(const char* filepath, const char* path)
/* if filepath, remove file entry */ /* if filepath, remove file entry */
if (path) if (path)
fpath = path;
fpath = copy(path);
else else
fpath = ngdirname(filepath); fpath = ngdirname(filepath);
@ -9531,5 +9531,6 @@ int add_to_sourcepath(const char* filepath, const char* path)
wl_free(wl); wl_free(wl);
} }
tfree(fpath);
return 0; return 0;
} }
Loading…
Cancel
Save