diff options
author | ftrvxmtrx <devnull@localhost> | 2014-05-02 04:27:29 +0200 |
---|---|---|
committer | ftrvxmtrx <devnull@localhost> | 2014-05-02 04:27:29 +0200 |
commit | f7f3e4780a5e0733f8699b7722811fb0887af8f1 (patch) | |
tree | a81dac053f1f822479a191328853d95ec4d202d1 /sys/src/libbio/binit.c | |
parent | beb665051bc635299e905ecb8abc5dfd9c3f011e (diff) |
bio: Brdstr, Bopen: set malloc tag to the caller
Diffstat (limited to 'sys/src/libbio/binit.c')
-rw-r--r-- | sys/src/libbio/binit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/libbio/binit.c b/sys/src/libbio/binit.c index ef705e667..36ed50ace 100644 --- a/sys/src/libbio/binit.c +++ b/sys/src/libbio/binit.c @@ -114,6 +114,7 @@ Bopen(char *name, int mode) if(f < 0) return 0; bp = malloc(sizeof(Biobuf)); + setmalloctag(bp, getcallerpc(&name)); Binits(bp, f, mode, bp->b, sizeof(bp->b)); bp->flag = Bmagic; /* mark bp open & malloced */ return bp; |