aboutsummaryrefslogtreecommitdiffstats
path: root/main/frame.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 18:29:13 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 18:29:13 +0000
commit1690223ee5606043a8f768529d35eb52da1b5ea4 (patch)
tree26aeb8f817503c38e44f77aa2ab8ee05d2caa403 /main/frame.c
parentb0241a8bab4f7dbeba8ca3b824c2e5933e8842eb (diff)
allow 'show memory' and 'show memory summary' to distinguish memory allocations that were done for caching purposes, so they don't look like memory leaks
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48987 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/frame.c')
-rw-r--r--main/frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/frame.c b/main/frame.c
index beb141d52..a86e291ea 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -297,7 +297,7 @@ static struct ast_frame *ast_frame_header_new(void)
}
}
- if (!(f = ast_calloc(1, sizeof(*f))))
+ if (!(f = ast_calloc_cache(1, sizeof(*f))))
return NULL;
f->mallocd_hdr_len = sizeof(*f);
@@ -454,7 +454,7 @@ struct ast_frame *ast_frdup(const struct ast_frame *f)
AST_LIST_TRAVERSE_SAFE_END
}
if (!buf) {
- if (!(buf = ast_calloc(1, len)))
+ if (!(buf = ast_calloc_cache(1, len)))
return NULL;
out = buf;
out->mallocd_hdr_len = len;