Changeset 170 for trunk/src/sh_mem.c
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_mem.c
r154 r170 43 43 #include "sh_pthread.h" 44 44 45 extern int safe_logger (int signal, int method, char * details);45 extern int safe_logger (int thesignal, int method, char * details); 46 46 47 47 #undef FIL__ … … 258 258 259 259 260 void sh_mem_free (void * a , char * file, int line)261 { 262 volatile memlist_t * this = memlist;263 volatile memlist_t * before = memlist;260 void sh_mem_free (void * aa, char * file, int line) 261 { 262 memlist_t * this; 263 memlist_t * before; 264 264 unsigned long size = 0; 265 265 void * a; 266 266 SL_ENTER(_("sh_mem_free")); 267 267 … … 269 269 SH_MUTEX_RECURSIVE_LOCK(mutex_mem); 270 270 271 a = aa; 272 this = memlist; 273 before = memlist; 274 271 275 if ( a == NULL ) 272 276 { … … 315 319 free(a); 316 320 if (this) 317 free( (void*)this);321 free(this); 318 322 ++Free_Count; 319 323 --Now_Alloc_Count;
Note:
See TracChangeset
for help on using the changeset viewer.