mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish: fix small memory leak in completion
Do not leak the small memory buffer with the path.
This commit is contained in:
@@ -154,7 +154,8 @@ complete_dest_paths_generator (const char *text, int state)
|
||||
/* If we've got a partial path already, we need to list everything
|
||||
* in that directory, otherwise list everything in /
|
||||
*/
|
||||
char *p, *dir;
|
||||
CLEANUP_FREE char *dir = NULL;
|
||||
char *p;
|
||||
struct guestfs_dirent_list *dirents;
|
||||
|
||||
p = strrchr (text, '/');
|
||||
|
||||
Reference in New Issue
Block a user