Index: apps/app_mixmonitor.c =================================================================== --- apps/app_mixmonitor.c (revision 368394) +++ apps/app_mixmonitor.c (working copy) @@ -1034,1 +1034,1 @@ ast_channel_unlock(c); if (res) { + c = ast_channel_unref(c); astman_send_error(s, m, "Could not start monitoring channel"); return AMI_SUCCESS; }