summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/pcm_file.c')
-rw-r--r--src/pcm/pcm_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c
index 3d14090f..c3e67b2b 100644
--- a/src/pcm/pcm_file.c
+++ b/src/pcm/pcm_file.c
@@ -592,8 +592,10 @@ static int snd_pcm_file_hw_free(snd_pcm_t *pcm)
snd_pcm_file_t *file = pcm->private_data;
free(file->wbuf);
free(file->wbuf_areas);
+ free(file->final_fname);
file->wbuf = NULL;
file->wbuf_areas = NULL;
+ file->final_fname = NULL;
return snd_pcm_hw_free(file->gen.slave);
}