ast_log(LOG_ERROR, "Bridge %s: Failed to join channel %s. "
"Could not allocate enough memory.\n", bridge->uniqueid,
ast_channel_name(bridge_channel->chan));
+ ast_free(sc);
return -1;
}
}
ast_log(LOG_NOTICE, "Failed to re-allocate softmix mixing structure.\n");
return -1;
}
+ mixing_array->buffers = tmp;
+
if (binaural_active) {
struct convolve_channel_pair **tmp2;
if (!(tmp2 = ast_realloc(mixing_array->chan_pairs,
}
mixing_array->chan_pairs = tmp2;
}
- mixing_array->buffers = tmp;
return 0;
}