diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-04 21:58:42 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-04 21:58:42 +0000 |
commit | 77961ba4ac46b261f2204c0d9f9ea56b4079d5eb (patch) | |
tree | 40f5e0bac6c71e286addd080d0cf9682db6d455d /main/frame.c | |
parent | 7f40bb2d060a18cafc199a54ea1b8726ca4f55b0 (diff) |
don't mark these allocations as 'cache' allocations when caching has been disabled
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49536 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/frame.c')
-rw-r--r-- | main/frame.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/frame.c b/main/frame.c index 0cf11981f..83599fff8 100644 --- a/main/frame.c +++ b/main/frame.c @@ -300,10 +300,12 @@ static struct ast_frame *ast_frame_header_new(void) return f; } } -#endif - if (!(f = ast_calloc_cache(1, sizeof(*f)))) return NULL; +#else + if (!(f = ast_calloc(1, sizeof(*f)))) + return NULL; +#endif f->mallocd_hdr_len = sizeof(*f); #ifdef TRACE_FRAMES |