]> xenbits.xensource.com Git - libvirt.git/commit
virNetDev{Replace,Restore}MacAddress: Fix memory leak
authorWangrui (K) <moon.wangrui@huawei.com>
Tue, 8 Apr 2014 04:25:31 +0000 (04:25 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Apr 2014 08:51:53 +0000 (10:51 +0200)
commit79bef03a2ca8a8fd570f3f8bfd4aa35c68527f4a
treeedd1e16b488e13972df1c76a5a994267f940c8d7
parent23419a62c28a3936859c14d5cc877ae429251f23
virNetDev{Replace,Restore}MacAddress: Fix memory leak

Functions virNetDevRestoreMacAddress() and virNetDevRestoreMacAddress()
allocate memory for variable @path using virAsprintf(), but they
haven't freed that memory before returning out.

Signed-off-by: Zhang bo <oscar.zhangbo@huawei.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdev.c