提交 a7e80e6b 编写于 作者: J Jim Meyering

sexpr_string: avoid leak on OOM error path

* src/xen/sexpr.c (sexpr_string): Free sexpr buffer upon allocation
failure.
上级 04ebf058
......@@ -119,6 +119,7 @@ sexpr_string(const char *str, ssize_t len)
}
if (ret->u.value == NULL) {
VIR_FREE(ret);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册