serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1712092 - /serf/trunk/test/test_buckets.c
Date Mon, 02 Nov 2015 17:19:23 GMT
Author: rhuijben
Date: Mon Nov  2 17:19:23 2015
New Revision: 1712092

URL: http://svn.apache.org/viewvc?rev=1712092&view=rev
Log:
* test/test_buckets.c
  (deflate_buckets): Extend test a bit to resolve 980 definately lost memory
    blocks reported by valgrind.

Modified:
    serf/trunk/test/test_buckets.c

Modified: serf/trunk/test/test_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/test_buckets.c?rev=1712092&r1=1712091&r2=1712092&view=diff
==============================================================================
--- serf/trunk/test/test_buckets.c (original)
+++ serf/trunk/test/test_buckets.c Mon Nov  2 17:19:23 2015
@@ -1621,6 +1621,10 @@ static void deflate_buckets(CuTest *tc,
 
     tb->user_baton_l = APR_EOF;
     read_bucket_and_check_pattern(tc, defbkt, msg, nr_of_loops * strlen(msg));
+
+    /* Release a few MB of memory kept by zlib */
+    CuAssert(tc, "zlib end failed.",
+             deflateEnd(&zdestr));
 }
 
 static void test_deflate_buckets(CuTest *tc)



Mime
View raw message