• R/O
  • SSH
  • HTTPS

felicalib: Commit


Commit MetaInfo

Revision89 (tree)
Time2008-06-01 17:34:40
Authortmurakam

Log Message

misc fix

Change Summary

Incremental Difference

--- trunk/src/dump/dump.c (revision 88)
+++ trunk/src/dump/dump.c (revision 89)
@@ -67,7 +67,7 @@
6767 printf("# PMm: ");
6868 hexdump(f->PMm, 8);
6969 printf("\n\n");
70- free(f);
70+ felica_free(f);
7171
7272 f = felica_enum_systemcode(p);
7373 if (!f) {
@@ -105,8 +105,11 @@
105105 }
106106 }
107107 printf("\n");
108+ felica_free(f2);
108109 }
109110
111+ felica_free(f);
112+
110113 return 0;
111114 }
112115
--- trunk/src/lib/felicalib.c (revision 88)
+++ trunk/src/lib/felicalib.c (revision 89)
@@ -114,6 +114,7 @@
114114 static felica *alloc_felica(pasori *p, uint16 systemcode)
115115 {
116116 felica *f = (felica *)malloc(sizeof(felica));
117+ memset(f, 0, sizeof(felica));
117118 f->p = p;
118119 f->systemcode = H2NS(systemcode);
119120
Show on old repository browser