[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:22:14 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 4 14:21:37 2009 +0200| [a333ed732703d590da62a95ec50b3b03bad888a5] | committer: Rémi Duraffort
access_http: fix a memory leak (each time we follow a redirection).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a333ed732703d590da62a95ec50b3b03bad888a5
---
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