A couple of urgent fixes for old bugs, the critical one being the
patch to reject empty mood arguments.
Cooking only for a few days to get these fixes merged ASAP.
* maint:
com_addatt(): Fix memory leak.
mood.c: Fix memory leak in change_current_mood().
mp.c: Fix memory leak on parse errors.
Reject empty mood arguments.
if (ret < 0) {
if (errmsg)
*errmsg = make_message("audio file loop failed");
- return ret;
+ goto out;
}
+ clock_get_realtime(&rnow);
+ compute_correction_factors(rnow.tv_sec);
+ log_statistics(rnow.tv_sec);
for (i = 0; i < statistics.num; i++) {
- struct admissible_file_info *a = aa.array + i;
- ret = add_to_score_table(a->aft_row, a->score);
+ ret = add_to_score_table(aa.array[i]);
if (ret < 0) {
if (errmsg)
*errmsg = make_message(