]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
LXC: fix memory leak in virLXCControllerSetupDevPTS
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 20 May 2013 10:12:18 +0000 (18:12 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 20 May 2013 18:45:02 +0000 (12:45 -0600)
We forgot to free the mount_options.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/lxc/lxc_controller.c

index 2f01958f815dbd792d3f24c235adf8d54f3b5153..e311f38938cf8a2950344396ad990daf9ac03fec 100644 (file)
@@ -1353,6 +1353,7 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
 cleanup:
     VIR_FREE(opts);
     VIR_FREE(devpts);
+    VIR_FREE(mount_options);
     return ret;
 }