]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Resource some resource leaks in virsysinfo code
authorJohn Ferlan <jferlan@redhat.com>
Tue, 7 Mar 2017 11:33:38 +0000 (06:33 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 7 Mar 2017 18:25:03 +0000 (13:25 -0500)
commit7744d99415d32f5aab37c567934907960109bea7
treef59e14f1f0c2b67643598e63a76993b0425eef95
parentee42957bb17319d070af5e07a4fc04d9ffa63b84
util: Resource some resource leaks in virsysinfo code

Calls to virFileReadAll after a VIR_ALLOC that return NULL all show
a memory leak since 'ret' isn't virSysinfoDefFree'd and normal path
"return ret" doesn't free outbuf.

Reported by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virsysinfo.c