maybe fixed possible memory leak
authorChristian Pointner <equinox@realraum.at>
Wed, 6 Jan 2010 17:35:04 +0000 (17:35 +0000)
committerChristian Pointner <equinox@realraum.at>
Wed, 6 Jan 2010 17:35:04 +0000 (17:35 +0000)
mifare-read/mifare-read.c

index 80cb57e..0acf1bb 100644 (file)
@@ -54,6 +54,7 @@ int l2_init(int layer2)
   rc = rfid_layer2_open(l2h);
   if (rc < 0) {
 //    fprintf(stderr, "error during layer2_open\n");
+    rfid_layer2_fini(l2h);
     return rc;
   }