projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d6318b
)
stgReallocBytes(DEBUG): don't fail when the ptr passed in is NULL
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 17 Aug 2010 15:08:36 +0000
(15:08 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 17 Aug 2010 15:08:36 +0000
(15:08 +0000)
rts/RtsUtils.c
patch
|
blob
|
history
diff --git
a/rts/RtsUtils.c
b/rts/RtsUtils.c
index
eee7594
..
e9da59f
100644
(file)
--- a/
rts/RtsUtils.c
+++ b/
rts/RtsUtils.c
@@
-219,7
+219,7
@@
stgReallocBytes (void *p, int n, char *msg)
stg_exit(EXIT_INTERNAL_ERROR);
}
#if defined(DEBUG)
- removeAllocation(p, 0);
+ if (p != NULL) { removeAllocation(p, 0); }
addAllocation(space, n2);
#endif
return space;