ffserver: free AVStream st before wiping context
[ffmpeg.git] / ffserver.c
index ea0ccd8..cc736cb 100644 (file)
@@ -3468,6 +3468,7 @@ static int rtp_new_av_stream(HTTPContext *c,
     fail:
         if (h)
             ffurl_close(h);
+        av_free(st);
         av_free(ctx);
         return -1;
     }