[Libvirt-cim] [PATCH] Fix connection leak introduced in patch 1119
Chip Vincent
cvincent at linux.vnet.ibm.com
Tue Jul 26 00:25:48 UTC 2011
(x86_64)
libvirt-cim-0.5.14-1
tog-pegasus-2.11.0-1
libvirt-0.8.7-18
Before:
# netstat -na | grep -v LISTENING | grep -c libvirt-sock
0
After:
# netstat -na | grep -v LISTENING | grep -c libvirt-sock
0
-> no connection leaks. +1 and pushed!
See attached run report for additional details:
The results look *much* better with this patch. I only see three other
'interesting' issues:
1) Computer System Indication - needs investigation [priority = ?]
2) Profile assoc failures - libvirt-cim fix in progress [prority = high]
3) PoolID mismatches - side effect of fix 1119, which was expected. Fix
will be in cimtest [priority = low]
I'm working on a fix for #2 now.
On 07/25/2011 04:15 PM, Sharad Mishra wrote:
> # HG changeset patch
> # User Sharad Mishra<snmishra at us.ibm.com>
> # Date 1311624862 25200
> # Node ID 87404863f9a402eb1a59ff717d93caa75c50b29c
> # Parent 7cb42b369d3776c9d727402ba0198eea573d0d40
> Fix connection leak introduced in patch 1119.
>
> Signed-off-by: Sharad Mishra<snmishra at us.ibm.com>
>
> diff -r 7cb42b369d37 -r 87404863f9a4 src/Virt_RASD.c
> --- a/src/Virt_RASD.c Wed Jul 20 06:43:06 2011 -0700
> +++ b/src/Virt_RASD.c Mon Jul 25 13:14:22 2011 -0700
> @@ -349,6 +349,9 @@
> (CMPIValue *)dev->dev.disk.cache,
> CMPI_chars);
>
> + virStoragePoolFree(pool);
> + virStorageVolFree(vol);
> + virConnectClose(conn);
> return s;
> }
>
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
--
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent at linux.vnet.ibm.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: run_report.txt
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20110725/b77ef1a9/attachment.txt>
More information about the Libvirt-cim
mailing list