summaryrefslogtreecommitdiff
path: root/main/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/frame.c')
-rw-r--r--main/frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/frame.c b/main/frame.c
index a0109fd67..50e9dabbc 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -452,7 +452,8 @@ struct ast_frame *ast_frdup(const struct ast_frame *f)
AST_LIST_TRAVERSE_SAFE_BEGIN(&frames->list, out, frame_list) {
if (out->mallocd_hdr_len >= len) {
size_t mallocd_len = out->mallocd_hdr_len;
- AST_LIST_REMOVE_CURRENT(&frames->list, frame_list);
+
+ AST_LIST_REMOVE_CURRENT(frame_list);
memset(out, 0, sizeof(*out));
out->mallocd_hdr_len = mallocd_len;
buf = out;
@@ -460,7 +461,7 @@ struct ast_frame *ast_frdup(const struct ast_frame *f)
break;
}
}
- AST_LIST_TRAVERSE_SAFE_END
+ AST_LIST_TRAVERSE_SAFE_END;
}
#endif