summaryrefslogtreecommitdiff
path: root/sys/src/cmd/faces/util.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-04-30 11:48:30 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-04-30 11:48:30 +0200
commit748bdc13b2697e3e86c5955d2eb39e1f7c40f93e (patch)
treebd25aa38aad5912b1898449155cdbb9deaeaeb76 /sys/src/cmd/faces/util.c
parenta124609b6e7ad036c53360623b5fdefba58fe4b4 (diff)
faces: fix memory leaks
Diffstat (limited to 'sys/src/cmd/faces/util.c')
-rw-r--r--sys/src/cmd/faces/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/faces/util.c b/sys/src/cmd/faces/util.c
index 2f4f17ea8..bde1ef30c 100644
--- a/sys/src/cmd/faces/util.c
+++ b/sys/src/cmd/faces/util.c
@@ -14,6 +14,7 @@ emalloc(ulong sz)
exits("mem");
}
memset(v, 0, sz);
+ setmalloctag(v, getcallerpc(&sz));
return v;
}
@@ -25,6 +26,7 @@ erealloc(void *v, ulong sz)
fprint(2, "out of memory allocating %ld\n", sz);
exits("mem");
}
+ setrealloctag(v, getcallerpc(&sz));
return v;
}
@@ -36,6 +38,7 @@ estrdup(char *s)
fprint(2, "out of memory in strdup(%.10s)\n", s);
exits("mem");
}
+ setmalloctag(t, getcallerpc(&s));
return t;
}