[Pkg-libvirt-commits] [libguestfs] 14/40: fish: fix small memory leak in completion
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:44:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.44-1
in repository libguestfs.
commit c862dc3d2018550146b02740c4f0737cd715f207
Author: Pino Toscano <ptoscano at redhat.com>
Date: Wed Sep 10 11:39:55 2014 +0200
fish: fix small memory leak in completion
Do not leak the small memory buffer with the path.
---
fish/destpaths.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fish/destpaths.c b/fish/destpaths.c
index 9c97bf0..f224106 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -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, '/');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list