提交 2a3466fa 编写于 作者: G Gao feng 提交者: Eric Blake

LXC: fix memory leak in virLXCControllerSetupDevPTS

We forgot to free the mount_options.
Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
上级 eae1c286
...@@ -1353,6 +1353,7 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl) ...@@ -1353,6 +1353,7 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
cleanup: cleanup:
VIR_FREE(opts); VIR_FREE(opts);
VIR_FREE(devpts); VIR_FREE(devpts);
VIR_FREE(mount_options);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册