diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-01-24 15:12:01 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-01-24 15:56:19 +0000 |
commit | 9f8f1fd8560f2c3e7b625cf6d65a052cd061fd2e (patch) | |
tree | efc698a3088a656677ee33678b60cadfc9443aca /daemon | |
parent | f65f653ab1541400afe2f796ab1b20cd721e769d (diff) | |
download | libguestfs-9f8f1fd8560f2c3e7b625cf6d65a052cd061fd2e.tar.gz libguestfs-9f8f1fd8560f2c3e7b625cf6d65a052cd061fd2e.tar.xz libguestfs-9f8f1fd8560f2c3e7b625cf6d65a052cd061fd2e.zip |
daemon: Don't leak 'cmdline' (found by valgrind).
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/guestfsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index ad260a38..a28e090b 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -203,6 +203,8 @@ main (int argc, char *argv[]) printf ("could not read linux command line\n"); } + free (cmdline); + #ifndef WIN32 /* Make sure SIGPIPE doesn't kill us. */ struct sigaction sa; |