FS-9569: [mod_shout] close file handle when recording mp3 files that never get written to

This commit is contained in:
Mike Jerris 2016-12-28 12:21:45 -06:00
parent 50714ec5e4
commit aa01a265e4
1 changed files with 2 additions and 0 deletions

View File

@ -195,7 +195,9 @@ static inline void free_context(shout_context_t *context)
}
lame_mp3_tags_fid(context->gfp, context->fp);
}
if (context->fp) {
fclose(context->fp);
context->fp = NULL;
}