]> git.ipfire.org Git - thirdparty/libvirt.git/commit
free buf->content when vsnprintf() failed
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 27 Apr 2011 05:43:24 +0000 (13:43 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Wed, 27 Apr 2011 12:12:13 +0000 (20:12 +0800)
commit6fee3da262654eb59dac68ed7dd2ac3480a7329f
treeb53c80b2f3ce1e8c5e7f789cdfb4cc777f23e765
parent4a9019afbb640616528ad601a86840b8e4beefc1
free buf->content when vsnprintf() failed

When buf->error is 1, we do not return buf->content in the function
virBufferContentAndReset(). So we should free buf->content when
vsnprintf() failed.
src/util/buf.c