]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/asrc_flite.c
configure: add nologo switch to invocation of lib.exe
[ffmpeg] / libavfilter / asrc_flite.c
index b3f83abd7445789dca2ad3fd35cc2986e6fc888b..2e5bd4b6c010dbcf5a308b7e97843466b1c2010b 100644 (file)
@@ -170,8 +170,10 @@ static av_cold int init(AVFilterContext *ctx)
             return ret;
         }
 
-        if (!(flite->text = av_malloc(textbuf_size+1)))
+        if (!(flite->text = av_malloc(textbuf_size+1))) {
+            av_file_unmap(textbuf, textbuf_size);
             return AVERROR(ENOMEM);
+        }
         memcpy(flite->text, textbuf, textbuf_size);
         flite->text[textbuf_size] = 0;
         av_file_unmap(textbuf, textbuf_size);