From: Andre Noll Date: Tue, 2 Jan 2018 23:05:06 +0000 (+0100) Subject: server: Free audio file header on exit. X-Git-Tag: v0.6.2~4^2~8 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=273abb0f5e62d1ed3f6de70b23eba735ee01db53;p=paraslash.git server: Free audio file header on exit. This fixes a harmless memory leak which occurs when para_server terminates while a header stream is active. --- diff --git a/vss.c b/vss.c index 55eaf2eb..0a1ac525 100644 --- a/vss.c +++ b/vss.c @@ -1084,8 +1084,10 @@ static int vss_post_select(struct sched *s, void *context) struct vss_task *vsst = context; ret = task_get_notification(vsst->task); - if (ret < 0) + if (ret < 0) { + afh_free_header(vsst->header_buf, mmd->afd.audio_format_id); return ret; + } if (!vsst->map || vss_next() || vss_paused() || vss_repos()) { /* shut down senders and fec clients */ struct fec_client *fc, *tmp;