提交 d3f8fec4 编写于 作者: D Daniel P. Berrange

Fix double-free in virJSONParserHandleStartMap on OOM

If OOM occurs in virJSONParserHandleStartMap it will free
a variable that is owned by another object. This leads to
a later double-free.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 6bf30786
......@@ -862,7 +862,6 @@ static int virJSONParserHandleStartMap(void *ctx)
if (VIR_REALLOC_N(parser->state,
parser->nstate + 1) < 0) {
virJSONValueFree(value);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册