diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 6b8bdfdaf..f909a18a9 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -2105,8 +2105,6 @@ static const char *call_offer_answer_ng(struct ng_buffer *ngbuf, bencode_item_t } else { ilog(LOG_DEBUG, "Not updating Redis due to present no-redis-update flag"); } - obj_put(call); - call = NULL; gettimeofday(&(from_ml->started), NULL); @@ -2117,6 +2115,8 @@ static const char *call_offer_answer_ng(struct ng_buffer *ngbuf, bencode_item_t errstr = "Ran out of ports"; call_destroy(call); } + obj_put(call); + call = NULL; if (ret) goto out;