Changeset 390 for trunk/archive/pslib/src/Utils/tst_memory.c
- Timestamp:
- Apr 2, 2004, 4:36:53 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/tst_memory.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/tst_memory.c
r267 r390 25 25 static void *my_MemExhaustedCB(size_t size) 26 26 { 27 psError(__func__, "Bye bye sweet world\n");27 psError(__func__, ENOMEM, 1, "Bye bye sweet world\n"); 28 28 29 29 return NULL; … … 74 74 str = psRealloc(str, 20); 75 75 psFree(str); 76 #if 176 #if 0 77 77 /* 78 78 * An illegal double-free … … 81 81 #endif 82 82 83 #if 183 #if 0 84 84 /* 85 85 * Free memory not allocated with psAlloc … … 88 88 #endif 89 89 90 #if 090 #if 1 91 91 /* 92 92 * Ask for more memory than we can get … … 137 137 */ 138 138 if(psMemCheckCorruption(1)) { 139 psError(__func__, "Detected corrupted memory\n\n");139 psError(__func__, PS_ERR_MEMORY_CORRUPTION, 1, "Detected corrupted memory\n\n"); 140 140 } 141 141 /*
Note:
See TracChangeset
for help on using the changeset viewer.
