commit:     e849f8b058188b5371cc656056eb0aa32298cd9e
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 28 03:09:39 2014 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 03:09:39 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=e849f8b0

qlist: fix minor memory leaks reported by valgrind

---
 qlist.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qlist.c b/qlist.c
index a5a4908..5f8720f 100644
--- a/qlist.c
+++ b/qlist.c
@@ -437,6 +437,9 @@ int qlist_main(int argc, char **argv)
                free_sets(state.sets);
        }
 
+       free(state.buf);
+       free(state.atoms);
+
        return ret;
 }
 

Reply via email to