From 273abb0f5e62d1ed3f6de70b23eba735ee01db53 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 3 Jan 2018 00:05:06 +0100 Subject: [PATCH] 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. --- vss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2