[Pcsclite-cvs-commit] CVS PCSC/src
CVS User rousseau
ludovic.rousseau at free.fr
Tue Aug 2 14:09:29 UTC 2005
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv24622
Modified Files:
hotplug_libusb.c
Log Message:
HPEstablishUSBNotifications(): free data allocated for driverTracker[]
on exit
--- /cvsroot/pcsclite/PCSC/src/hotplug_libusb.c 2005/07/27 13:20:51 1.37
+++ /cvsroot/pcsclite/PCSC/src/hotplug_libusb.c 2005/08/02 14:09:29 1.38
@@ -7,7 +7,7 @@
* Toni Andjelkovic <toni at soth.at>
* Damien Sauveron <damien.sauveron at labri.fr>
*
- * $Id: hotplug_libusb.c,v 1.37 2005/07/27 13:20:51 rousseau Exp $
+ * $Id: hotplug_libusb.c,v 1.38 2005/08/02 14:09:29 rousseau Exp $
*/
/**
@@ -344,6 +344,15 @@
{
int retval;
+ for (i=0; i<driverSize; i++)
+ {
+ /* free strings allocated by strdup() */
+ free(driverTracker[i].bundleName);
+ free(driverTracker[i].libraryPath);
+ free(driverTracker[i].readerName);
+ }
+ free(driverTracker);
+
Log1(PCSC_LOG_INFO, "Hotplug stopped");
pthread_exit(&retval);
}
More information about the Pcsclite-cvs-commit
mailing list