Re: [libvirt] [PATCH] util: fix memory leak in virSocketAddrFormatFull

2017-05-26 Thread Erik Skultety
On Thu, May 25, 2017 at 10:12:45PM -0400, Yi Wang wrote: > The @ipv6_host allocated in virAsprintf may be lost when virAsprintf > addrstr failed. > > Signed-off-by: Yi Wang > --- > src/util/virsocketaddr.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/util/virsoc

[libvirt] [PATCH] util: fix memory leak in virSocketAddrFormatFull

2017-05-25 Thread Yi Wang
The @ipv6_host allocated in virAsprintf may be lost when virAsprintf addrstr failed. Signed-off-by: Yi Wang --- src/util/virsocketaddr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/virsocketaddr.c b/src/util/virsocketaddr.c index 9dffbc7..95b5274 100644 --- a/