[Pcsclite-cvs-commit] r2586 - trunk/PCSC/doc/example
rousseau at alioth.debian.org
rousseau at alioth.debian.org
Mon Jul 2 12:58:20 UTC 2007
Author: rousseau
Date: 2007-07-02 12:58:20 +0000 (Mon, 02 Jul 2007)
New Revision: 2586
Modified:
trunk/PCSC/doc/example/pcsc_demo.c
Log:
do not free unallocated resources
Modified: trunk/PCSC/doc/example/pcsc_demo.c
===================================================================
--- trunk/PCSC/doc/example/pcsc_demo.c 2007-07-02 12:44:43 UTC (rev 2585)
+++ trunk/PCSC/doc/example/pcsc_demo.c 2007-07-02 12:58:20 UTC (rev 2586)
@@ -296,8 +296,10 @@
rv);
/* free allocated memory */
- free(mszReaders);
- free(readers);
+ if (mszReaders)
+ free(mszReaders);
+ if (readers)
+ free(readers);
return EXIT_SUCCESS;
} /* main */
More information about the Pcsclite-cvs-commit
mailing list