projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16905d7
)
Add missing tracing to qemu_mallocz()
author
Jes Sorensen
<Jes.Sorensen@redhat.com>
Mon, 6 Dec 2010 14:25:34 +0000
(15:25 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 14 Dec 2010 14:44:21 +0000
(15:44 +0100)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-malloc.c
patch
|
blob
|
history
diff --git
a/qemu-malloc.c
b/qemu-malloc.c
index 28fb05a481f6288427907d78b68a4dd39dd11278..b9b38514ac1ebb0cbb24d208da0c3c15d021c6a7 100644
(file)
--- a/
qemu-malloc.c
+++ b/
qemu-malloc.c
@@
-64,10
+64,13
@@
void *qemu_realloc(void *ptr, size_t size)
void *qemu_mallocz(size_t size)
{
+ void *ptr;
if (!size && !allow_zero_malloc()) {
abort();
}
- return qemu_oom_check(calloc(1, size ? size : 1));
+ ptr = qemu_oom_check(calloc(1, size ? size : 1));
+ trace_qemu_malloc(size, ptr);
+ return ptr;
}
char *qemu_strdup(const char *str)