git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17383b6
)
protocol: Memory leak: Free temporary buffer along recv_discard path.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 29 Nov 2011 13:13:06 +0000
(13:13 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 2 Dec 2011 08:33:44 +0000
(08:33 +0000)
(cherry picked from commit
d81c0829ea4a99aadb98df37be9543a973269041
)
src/proto.c
patch
|
blob
|
history
diff --git
a/src/proto.c
b/src/proto.c
index
be7fbdc
..
e34e4ec
100644
(file)
--- 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;