[vlc-devel] commit: Memory leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jan 29 21:58:15 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jan 29 22:58:06 2009 +0200| [7c774cfc6e9ee54898973edd2a9585371f561483] | committer: Rémi Denis-Courmont 

Memory leak

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

 modules/video_output/xcb/xcb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/xcb.c b/modules/video_output/xcb/xcb.c
index 48f3164..34b83d0 100644
--- a/modules/video_output/xcb/xcb.c
+++ b/modules/video_output/xcb/xcb.c
@@ -130,8 +130,10 @@ static int Open (vlc_object_t *obj)
     {
         msg_Err (vout, "cannot connect to X server %s",
                  display ? display : "");
+        free (display);
         goto error;
     }
+    free (display);
 
     /* Get the preferred screen */
     xcb_screen_t *scr = xcb_aux_get_screen (p_sys->conn, snum);




More information about the vlc-devel mailing list