From c7402a91769702e79202a65f6c853d18c110b38d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 6 Nov 2012 09:13:05 +0100 Subject: [PATCH] xbps-query/search.c: fix a memleak found by cppcheck. --- bin/xbps-query/search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/xbps-query/search.c b/bin/xbps-query/search.c index 8413009d..961f89b2 100644 --- a/bin/xbps-query/search.c +++ b/bin/xbps-query/search.c @@ -136,6 +136,7 @@ show_pkg_namedesc(struct xbps_handle *xhp, } else { printf("%s %s %s\n", inststr, tmp, desc); } + free(tmp); } }