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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Dec 5 14:44:10 UTC 2011


Author: rousseau
Date: Mon Dec  5 14:44:09 2011
New Revision: 6130

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6130
Log:
HPReadBundleValues(): remove extra free()

Do not free memory allocated for CFBundleName since we use this value
directly in
   driverTracker[listCount].CFBundleName = CFBundleName; (line 180)
instead of using a strdup(), because the string is the same for many
entries

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=6130&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libudev.c (original)
+++ trunk/PCSC/src/hotplug_libudev.c Mon Dec  5 14:44:09 2011
@@ -217,7 +217,6 @@
 				}
 			}
 			bundleRelease(&plist);
-			free(CFBundleName);
 		}
 	}
 




More information about the Pcsclite-cvs-commit mailing list