Skip to content

Commit

Permalink
Do not leak the dialog in case there's an error on creation, after li…
Browse files Browse the repository at this point in the history
…nking

(cherry picked from commit 57f331f)
  • Loading branch information
vladpaiu committed Apr 20, 2015
1 parent 0f34ecf commit eaccd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_handlers.c
Expand Up @@ -932,7 +932,7 @@ int dlg_create_dialog(struct cell* t, struct sip_msg *req,unsigned int flags)

return 0;
error:
unref_dlg(dlg,2);
unref_dlg(dlg,extra_ref);
dialog_cleanup( req, NULL);
if_update_stat(dlg_enable_stats, failed_dlgs, 1);
return -1;
Expand Down

0 comments on commit eaccd49

Please sign in to comment.