From: Richard W.M. Jones Date: Tue, 29 Nov 2011 13:13:06 +0000 (+0000) Subject: protocol: Memory leak: Free temporary buffer along recv_discard path. X-Git-Tag: 1.14.5~14 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a994c2c5abab544eec84fd8b94211e455ab6b434;p=libguestfs.git protocol: Memory leak: Free temporary buffer along recv_discard path. (cherry picked from commit d81c0829ea4a99aadb98df37be9543a973269041) --- diff --git a/src/proto.c b/src/proto.c index be7fbdc..e34e4ec 100644 --- a/src/proto.c +++ b/src/proto.c @@ -1090,6 +1090,7 @@ guestfs___recv_discard (guestfs_h *g, const char *fn) again: r = guestfs___recv_from_daemon (g, &size, &buf); + free (buf); if (r == -1) return -1;