summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/riff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/riff.c b/src/riff.c
index 73ccad5..40aae18 100644
--- a/src/riff.c
+++ b/src/riff.c
@@ -118,6 +118,8 @@ static void file_close(xas_riff *riff, xas_audio_stream *stream) {
(void)close(riff->fd);
+ free(riff);
+
error_header_write:
error_io:
return;