]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9569: [mod_shout] close file handle when recording mp3 files that never get written to
authorMike Jerris <mike@jerris.com>
Wed, 28 Dec 2016 18:21:45 +0000 (12:21 -0600)
committerMike Jerris <mike@jerris.com>
Wed, 28 Dec 2016 18:21:45 +0000 (12:21 -0600)
src/mod/formats/mod_shout/mod_shout.c

index f326116a5b1f9c50994bf3b76b14389d776ea780..66cfa1368281b07810db97e250b4ad472e01b42c 100644 (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;
                }