summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWanlong Gao <gaowanlong@cn.fujitsu.com>2012-08-06 16:23:20 +0800
committerRichard W.M. Jones <rjones@redhat.com>2012-08-11 14:18:42 +0100
commit9fab546206e0102daac01f835bc546117342f4c7 (patch)
tree8d6c3082213cd0f1fb9b8aa6432ff48ceeec29d8
parentb93d004c7ce3bd6c3ae331d57289b02f9ce01af9 (diff)
downloadlibguestfs-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.c1
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;
}