]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_av] fix memory leak on file playing
authorDragos Oancea <dragos@signalwire.com>
Sat, 27 Feb 2021 14:01:27 +0000 (14:01 +0000)
committerAndrey Volk <andywolk@gmail.com>
Mon, 22 Mar 2021 15:49:13 +0000 (18:49 +0300)
src/mod/applications/mod_av/avformat.c

index 0b3a452325240aa6be0cb8f725daf7e3277f3e28..d45f584b2d68c4b04a45616d3e502e1b68b96e4b 100644 (file)
@@ -1571,6 +1571,8 @@ GCC_DIAG_ON(deprecated-declarations)
 
                        }
 
+               } else {
+                       av_packet_unref(&pkt);
                }
        }