aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/frame.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/frame.c b/main/frame.c
index f8935db5c..39ba8cdad 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -304,10 +304,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