[vlc-devel] commit: access_http: fix a memory leak (each time we follow a redirection). ( Rémi Duraffort )

git version control git at videolan.org
Sat Jul 4 14:38:43 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Sat Jul  4 14:21:37 2009 +0200| [a76b086d0b220799b8e44c8700c23b5d708ceafb] | committer: Rémi Duraffort 

access_http: fix a memory leak (each time we follow a redirection).
(cherry picked from commit a333ed732703d590da62a95ec50b3b03bad888a5)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

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

diff --git a/modules/access/http.c b/modules/access/http.c
index 7c3a06c..e21a4b1 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -495,6 +495,9 @@ connect:
 
         Disconnect( p_access );
         cookies = p_sys->cookies;
+#ifdef HAVE_ZLIB_H
+        inflateEnd( &p_sys->inflate.stream );
+#endif
         free( p_sys );
 
         /* Do new Open() run with new data */




More information about the vlc-devel mailing list