projects
/
repair.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718e0cc
)
don't call the typemap with value 0
author
bdemsky
<bdemsky>
Mon, 10 Oct 2005 02:49:22 +0000
(
02:49
+0000)
committer
bdemsky
<bdemsky>
Mon, 10 Oct 2005 02:49:22 +0000
(
02:49
+0000)
Repair/RepairCompiler/MCC/CRuntime/instrument.c
patch
|
blob
|
history
diff --git
a/Repair/RepairCompiler/MCC/CRuntime/instrument.c
b/Repair/RepairCompiler/MCC/CRuntime/instrument.c
index
ab5db1e
..
dd1ccc0
100755
(executable)
--- a/
Repair/RepairCompiler/MCC/CRuntime/instrument.c
+++ b/
Repair/RepairCompiler/MCC/CRuntime/instrument.c
@@
-24,7
+24,9
@@
void *ourmalloc(size_t size) {
}
void ourfree(void *ptr) {
- typemapdeallocate(memmap, ptr);
+ if (ptr!=NULL) {
+ typemapdeallocate(memmap, ptr);
+ }
free(ptr);
}