X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=77a0a1ee32bb7a1b3241afc549d999f124a6073e;hp=d1e36490822c216da260003457a1fecfc3c02941;hb=3d075bb43197cf3c5dbe23bb78e3b43a5f4bcca1;hpb=c79899fe6a1e8eb3086749f46c599d9790d99921 diff --git a/audiod_command.c b/audiod_command.c index d1e36490..77a0a1ee 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -350,7 +350,7 @@ err_out: return 1; } -int __noreturn com_term(int fd, __a_unused int argc, __a_unused char **argv) +__noreturn int com_term(int fd, __a_unused int argc, __a_unused char **argv) { close(fd); clean_exit(EXIT_SUCCESS, "terminating on user request"); @@ -520,6 +520,7 @@ void audiod_status_dump(void) old = stat_task->stat_item_values[SI_DECODER_FLAGS]; new = decoder_flags(); if (!old || strcmp(old, new)) { + free(old); stat_client_write(new, SI_DECODER_FLAGS); stat_task->stat_item_values[SI_DECODER_FLAGS] = new; } else