[vlc-devel] commit: Fix Memory leak: free proxy_factory even when buffer for asprintf can not be assigned ( Dominique Leuenberger )

git version control git at videolan.org
Mon Jun 16 19:52:46 CEST 2008


vlc | branch: master | Dominique Leuenberger <dominique at leuenberger.net> | Mon Jun 16 20:01:42 2008 +0300| [a616807cd6aa91029f11def2d57bca769af819f0]

Fix Memory leak: free proxy_factory even when buffer for asprintf can not be assigned

Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

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

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

diff --git a/modules/access/http.c b/modules/access/http.c
index e397a1f..78762c1 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -343,8 +343,8 @@ static int OpenWithCookies( vlc_object_t *p_this, vlc_array_t *cookies )
                 for(i=0;proxies[i];i++) free(proxies[i]);
                 free(proxies);
                 free(buf);
-                px_proxy_factory_free(pf);
             }
+            px_proxy_factory_free(pf);
         }
         else
         {




More information about the vlc-devel mailing list