提交 9babbaa5 编写于 作者: J John Ferlan

virnetdev: Resolve Coverity RESOURCE_LEAK

virFileReadAll returns a chunk of memory that needs to be free'd when
done
上级 f099726c
......@@ -2200,6 +2200,7 @@ static int virNetDevGetMcastList(const char *ifname,
ret = 0;
cleanup:
VIR_FREE(buf);
VIR_FREE(entry);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册