projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60d48fb
)
malloc: add exception info to function header
author
Brian Norris
<banorris@uci.edu>
Fri, 27 Apr 2012 06:50:10 +0000
(23:50 -0700)
committer
Brian Norris
<banorris@uci.edu>
Fri, 27 Apr 2012 06:50:10 +0000
(23:50 -0700)
malloc.c
patch
|
blob
|
history
diff --git
a/malloc.c
b/malloc.c
index f20c4e7a46692b9a7d7848431b993979c7033a88..3ec0d3fb57d1314b7bf275b24747d3049b146f12 100644
(file)
--- a/
malloc.c
+++ b/
malloc.c
@@
-38,12
+38,12
@@
void myFree(void *ptr)
real_free(ptr);
}
-void * operator new(size_t size)
+void * operator new(size_t size)
throw(std::bad_alloc)
{
return myMalloc(size);
}
-void operator delete(void *p)
+void operator delete(void *p)
throw()
{
myFree(p);
}