[vlc-commits] avio out: fix memleak in error path

Rafaël Carré git at videolan.org
Tue Oct 11 23:23:17 CEST 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Oct  9 22:49:30 2011 -0400| [88588f355e2d681eb5d03c023c0e3333e6bb5cbf] | committer: Rafaël Carré

avio out: fix memleak in error path

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88588f355e2d681eb5d03c023c0e3333e6bb5cbf
---

 modules/access/avio.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/access/avio.c b/modules/access/avio.c
index 308a8a3..c6339ff 100644
--- a/modules/access/avio.c
+++ b/modules/access/avio.c
@@ -145,6 +145,7 @@ int OutOpenAvio(vlc_object_t *object)
      * with an exclusive lock */
     if (SetupAvio(VLC_OBJECT(access))) {
         msg_Err(access, "Module aready in use");
+        free(sys);
         return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list