aboutsummaryrefslogtreecommitdiff
path: root/qemu-malloc.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-06 00:19:42 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-06 00:19:42 +0000
commit62a3fe29aa33651ca9b0af78dc5e1cf72ecd66be (patch)
tree2136117da2a16018c2faa1e31921918ebbaa0d86 /qemu-malloc.c
parent809c130cef007055b19c12ab7fba3ce79ab56800 (diff)
Replace exit() in oom_check with abort()
So that we can get a core dump with a stack trace. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6542 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-malloc.c')
-rw-r--r--qemu-malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-malloc.c b/qemu-malloc.c
index 1d00f26d00..e9e49cb8f2 100644
--- a/qemu-malloc.c
+++ b/qemu-malloc.c
@@ -27,7 +27,7 @@
static void *oom_check(void *ptr)
{
if (ptr == NULL)
- exit(13);
+ abort();
return ptr;
}