Skip to content

Commit

Permalink
daemon: protocol: Fix memory leak when receiving FileIn file (RHBZ#91…
Browse files Browse the repository at this point in the history
…4934).

This fixes commit 950951c.
  • Loading branch information
rwmjones committed Feb 23, 2013
1 parent 4136850 commit fadec06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daemon/proto.c
Expand Up @@ -363,12 +363,13 @@ receive_file (receive_cb cb, void *opaque)
{
guestfs_chunk chunk;
char lenbuf[4];
CLEANUP_FREE char *buf = NULL;
XDR xdr;
int r;
uint32_t len;

for (;;) {
CLEANUP_FREE char *buf = NULL;

if (verbose)
fprintf (stderr, "guestfsd: receive_file: reading length word\n");

Expand Down

0 comments on commit fadec06

Please sign in to comment.