[Pcsclite-cvs-commit] r5847 - /trunk/PCSC/src/hotplug_libudev.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jul 6 19:09:19 UTC 2011


Author: rousseau
Date: Wed Jul  6 19:09:19 2011
New Revision: 5847

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5847
Log:
HPReadBundleValues(): fix a memory leak

coverity: Event leaked_storage: Variable "hpDir" going out of scope
leaks the storage it points to.

Modified:
    trunk/PCSC/src/hotplug_libudev.c

Modified: trunk/PCSC/src/hotplug_libudev.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_libudev.c?rev=5847&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libudev.c (original)
+++ trunk/PCSC/src/hotplug_libudev.c Wed Jul  6 19:09:19 2011
@@ -104,6 +104,7 @@
 	if (NULL == driverTracker)
 	{
 		Log1(PCSC_LOG_CRITICAL, "Not enough memory");
+		(void)closedir(hpDir);
 		return -1;
 	}
 




More information about the Pcsclite-cvs-commit mailing list