mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@48987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -957,7 +957,7 @@ struct iax_frame *iax_frame_new(int direction, int datalen)
|
||||
}
|
||||
|
||||
if (!fr) {
|
||||
if (!(fr = ast_calloc(1, sizeof(*fr) + datalen)))
|
||||
if (!(fr = ast_calloc_cache(1, sizeof(*fr) + datalen)))
|
||||
return NULL;
|
||||
fr->mallocd_datalen = datalen;
|
||||
}
|
||||
|
Reference in New Issue
Block a user