Re: [libvirt] Memory leak in xen_inotify.c

2008-11-30 Thread Daniel P. Berrange
On Sat, Nov 29, 2008 at 01:15:52PM -0800, Niraj Tolia wrote: > Hi, > > It looks like xenInotifyOpen() in xen_inotify.c has an opendir() call. > However, as there is no corresponding closedir() and opendir() uses > malloc internally, valgrind reports this as a memory leak. Adding a > closedir() to

[libvirt] Memory leak in xen_inotify.c

2008-11-29 Thread Niraj Tolia
Hi, It looks like xenInotifyOpen() in xen_inotify.c has an opendir() call. However, as there is no corresponding closedir() and opendir() uses malloc internally, valgrind reports this as a memory leak. Adding a closedir() to the end of this function should fix this. Cheers, Niraj -- Libvir-list