[Pcsclite-cvs-commit] r6621 - /trunk/PCSC/src/hotplug_libudev.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sun May 5 13:18:00 UTC 2013
Author: rousseau
Date: Sun May 5 13:18:00 2013
New Revision: 6621
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6621
Log:
Fix a memory leak in case of error
Coverity: 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=6621&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libudev.c (original)
+++ trunk/PCSC/src/hotplug_libudev.c Sun May 5 13:18:00 2013
@@ -156,6 +156,7 @@
|| (list_size(manuIDs) != list_size(readerNames)))
{
Log2(PCSC_LOG_CRITICAL, "Error parsing %s", fullPath);
+ (void)closedir(hpDir);
return -1;
}
More information about the Pcsclite-cvs-commit
mailing list