access_http: fix a memory leak (each time we follow a redirection).
authorRémi Duraffort <ivoire@videolan.org>
Sat, 4 Jul 2009 12:21:37 +0000 (14:21 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 4 Jul 2009 12:21:37 +0000 (14:21 +0200)
modules/access/http.c

index 7c3a06c..e21a4b1 100644 (file)
@@ -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 */