diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2012-08-06 16:23:20 +0800 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-11 14:18:42 +0100 |
commit | 9fab546206e0102daac01f835bc546117342f4c7 (patch) | |
tree | 8d6c3082213cd0f1fb9b8aa6432ff48ceeec29d8 | |
parent | b93d004c7ce3bd6c3ae331d57289b02f9ce01af9 (diff) | |
download | libguestfs-9fab546206e0102daac01f835bc546117342f4c7.tar.gz libguestfs-9fab546206e0102daac01f835bc546117342f4c7.tar.xz libguestfs-9fab546206e0102daac01f835bc546117342f4c7.zip |
xfs: fix a possible memory leak
free out when failure.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
-rw-r--r-- | daemon/xfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/xfs.c b/daemon/xfs.c index 73ba791e..b331b9ba 100644 --- a/daemon/xfs.c +++ b/daemon/xfs.c @@ -457,5 +457,6 @@ do_xfs_growfs (const char *path, error: if (buf) free (buf); if (err) free (err); + if (out) free (out); return NULL; } |