From a7987a4d369ca4df2aa8d2026276b9b945f59910 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 6 May 2006 02:32:23 +0000 Subject: [PATCH] re-add a couple of lines that I shouldn't have removed in the previous commit. I think I should be going to bed now ... git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25165 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- frame.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frame.c b/frame.c index cef3b8a832..a43a9834d7 100644 --- a/frame.c +++ b/frame.c @@ -326,7 +326,8 @@ struct ast_frame *ast_frisolate(struct ast_frame *fr) if (!(fr->mallocd & AST_MALLOCD_SRC)) { if (fr->src) out->src = strdup(fr->src); - } + } else + out->src = fr->src; if (!(fr->mallocd & AST_MALLOCD_DATA)) { newdata = malloc(fr->datalen + AST_FRIENDLY_OFFSET);