[Pcsclite-cvs-commit] r4200 - /trunk/PCSC/src/utils/formaticc.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue May 12 13:20:00 UTC 2009


Author: rousseau
Date: Tue May 12 13:19:59 2009
New Revision: 4200

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4200
Log:
cppcheck: (error) Resource leak: fp

Modified:
    trunk/PCSC/src/utils/formaticc.c

Modified: trunk/PCSC/src/utils/formaticc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/utils/formaticc.c?rev=4200&op=diff
==============================================================================
--- trunk/PCSC/src/utils/formaticc.c (original)
+++ trunk/PCSC/src/utils/formaticc.c Tue May 12 13:19:59 2009
@@ -240,5 +240,8 @@
 	(void)SCardReleaseContext(hContext);
 	free(mszReaders);
 
+	(int)fclose(fp);
+	(int)fclose(fo);
+
 	return 0;
 }




More information about the Pcsclite-cvs-commit mailing list