Browse Source

MT#55283 fix missing unlock

Change-Id: I2ce02e92debce0ba33b6a271ba831d7ba67e622b
pull/1772/head
Richard Fuchs 2 years ago
parent
commit
0a7812aed5
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      daemon/call_interfaces.c

+ 2
- 3
daemon/call_interfaces.c View File

@ -1971,7 +1971,7 @@ static const char *call_offer_answer_ng(struct ng_buffer *ngbuf, bencode_item_t
g_auto(str) sdp = STR_NULL; g_auto(str) sdp = STR_NULL;
AUTO_CLEANUP(GQueue parsed, sdp_free) = G_QUEUE_INIT; AUTO_CLEANUP(GQueue parsed, sdp_free) = G_QUEUE_INIT;
AUTO_CLEANUP(GQueue streams, sdp_streams_free) = G_QUEUE_INIT; AUTO_CLEANUP(GQueue streams, sdp_streams_free) = G_QUEUE_INIT;
struct call *call;
AUTO_CLEANUP_NULL(struct call *call, call_unlock_release);
struct call_monologue * monologues[2]; struct call_monologue * monologues[2];
int ret; int ret;
g_auto(sdp_ng_flags) flags; g_auto(sdp_ng_flags) flags;
@ -2055,8 +2055,6 @@ static const char *call_offer_answer_ng(struct ng_buffer *ngbuf, bencode_item_t
errstr = "Invalid dialogue association"; errstr = "Invalid dialogue association";
if (call_get_mono_dialogue(monologues, call, &flags.from_tag, &flags.to_tag, if (call_get_mono_dialogue(monologues, call, &flags.from_tag, &flags.to_tag,
flags.via_branch.s ? &flags.via_branch : NULL)) { flags.via_branch.s ? &flags.via_branch : NULL)) {
rwlock_unlock_w(&call->master_lock);
obj_put(call);
goto out; goto out;
} }
@ -2108,6 +2106,7 @@ static const char *call_offer_answer_ng(struct ng_buffer *ngbuf, bencode_item_t
ilog(LOG_DEBUG, "Not updating Redis due to present no-redis-update flag"); ilog(LOG_DEBUG, "Not updating Redis due to present no-redis-update flag");
} }
obj_put(call); obj_put(call);
call = NULL;
gettimeofday(&(from_ml->started), NULL); gettimeofday(&(from_ml->started), NULL);


Loading…
Cancel
Save