Changeset 2241 in MondoRescue for branches/2.2.9/mondo/src/lib
- Timestamp:
- Jun 29, 2009, 7:19:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/lib/mr_mem.c
r1196 r2241 25 25 * *allocated variable points then to the original content 26 26 * pointed to by the caller 27 * In case of NULL pointer it just logs it 27 28 */ 28 29 void mr_free_int(void **allocated, int line, const char *file) { … … 35 36 *allocated = NULL; 36 37 } else { 37 mr_msg_int(1,line,file,"Attempt to reference NULL pointer\nExiting..."); 38 mr_exit(-1,"Attempt to reference NULL pointer"); 38 mr_msg_int(8,line,file,"Attempt to free NULL pointer"); 39 39 } 40 40 }
Note:
See TracChangeset
for help on using the changeset viewer.