mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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
This commit is contained in:
3
frame.c
3
frame.c
@@ -326,7 +326,8 @@ struct ast_frame *ast_frisolate(struct ast_frame *fr)
|
|||||||
if (!(fr->mallocd & AST_MALLOCD_SRC)) {
|
if (!(fr->mallocd & AST_MALLOCD_SRC)) {
|
||||||
if (fr->src)
|
if (fr->src)
|
||||||
out->src = strdup(fr->src);
|
out->src = strdup(fr->src);
|
||||||
}
|
} else
|
||||||
|
out->src = fr->src;
|
||||||
|
|
||||||
if (!(fr->mallocd & AST_MALLOCD_DATA)) {
|
if (!(fr->mallocd & AST_MALLOCD_DATA)) {
|
||||||
newdata = malloc(fr->datalen + AST_FRIENDLY_OFFSET);
|
newdata = malloc(fr->datalen + AST_FRIENDLY_OFFSET);
|
||||||
|
Reference in New Issue
Block a user