Skip to content

Commit

Permalink
MT#55283 rework parser framework
Browse files Browse the repository at this point in the history
Change-Id: Ia837916ec2123afe03e63c62bfb7058173f05fad
  • Loading branch information
rfuchs committed Aug 16, 2024
1 parent 68ff069 commit 7dd2235
Show file tree
Hide file tree
Showing 13 changed files with 261 additions and 233 deletions.
3 changes: 3 additions & 0 deletions daemon/bencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ void *bencode_buffer_alloc(bencode_buffer_t *buf, unsigned int size) {
void bencode_buffer_free(bencode_buffer_t *buf) {
struct __bencode_buffer_piece *piece, *next;

if (!buf)
return;

for (piece = buf->pieces; piece; piece = next) {
next = piece->next;
BENCODE_FREE(piece);
Expand Down
4 changes: 2 additions & 2 deletions daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -4766,7 +4766,7 @@ static void monologue_stop(struct call_monologue *ml, bool stop_media_subsribers
// call must be locked in W.
// unlocks the call and releases the reference prior to returning, even on error.
int call_delete_branch(call_t *c, const str *branch,
const str *fromtag, const str *totag, ng_parser_ctx_t *ctx, int delete_delay)
const str *fromtag, const str *totag, ng_command_ctx_t *ctx, int delete_delay)
{
struct call_monologue *ml;
int ret;
Expand Down Expand Up @@ -4894,7 +4894,7 @@ int call_delete_branch(call_t *c, const str *branch,


int call_delete_branch_by_id(const str *callid, const str *branch,
const str *fromtag, const str *totag, ng_parser_ctx_t *ctx, int delete_delay)
const str *fromtag, const str *totag, ng_command_ctx_t *ctx, int delete_delay)
{
call_t *c = call_get(callid);
if (!c) {
Expand Down
Loading

0 comments on commit 7dd2235

Please sign in to comment.