Re: [libvirt] [PATCH] virnetdev: Fix Memory Leak in virNetDevReplaceMacAddress() and virNetDevRestoreMacAddress()

2014-04-08 Thread Michal Privoznik
On 08.04.2014 06:25, Wangrui (K) wrote: > function virNetDevRestoreMacAddress() and virNetDevRestoreMacAddress() alloc > memory for > variable 'path' using virAsprintf(), but they havn't free that memory before > returning out. The subject is rather long. s/function/Functions/ s/alloc/allocate/

[libvirt] [PATCH] virnetdev: Fix Memory Leak in virNetDevReplaceMacAddress() and virNetDevRestoreMacAddress()

2014-04-07 Thread Wangrui (K)
function virNetDevRestoreMacAddress() and virNetDevRestoreMacAddress() alloc memory for variable 'path' using virAsprintf(), but they havn't free that memory before returning out. Signed-off-by: Zhang bo --- src/util/virnetdev.c | 22 ++ 1 file changed, 14 insertions(+), 8