Changeset 2354 for zzuf/trunk/src
- Timestamp:
- Jun 10, 2008, 6:21:17 PM (13 years ago)
- Location:
- zzuf/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/lib-mem.c
r1791 r2354 111 111 void _zz_mem_init(void) 112 112 { 113 LOADSYM(free); 113 114 LOADSYM(calloc); 114 115 LOADSYM(malloc); … … 157 158 return; 158 159 } 159 LOADSYM(free); 160 if(!ORIG(free)) 161 { 162 /* FIXME: memory leak */ 163 debug("%s(%p) IGNORED", __func__, ptr); 164 return; 165 } 160 166 ORIG(free)(ptr); 161 167 } -
zzuf/trunk/src/libzzuf.c
r2345 r2354 103 103 char *tmp, *tmp2; 104 104 105 /* We need this as soon as possible */106 _zz_mem_init();107 108 105 tmp = getenv("ZZUF_DEBUG"); 109 106 if(tmp) 110 107 _zz_debugfd = atoi(tmp); 108 109 /* We need this as soon as possible */ 110 _zz_mem_init(); 111 111 112 112 tmp = getenv("ZZUF_SEED");
Note: See TracChangeset
for help on using the changeset viewer.