]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
free the context object once done with decompression
authorPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 22:37:14 +0000 (15:37 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 22:37:14 +0000 (15:37 -0700)
tests/decodecorpus.c

index dd2bc562d74331e2d3e8343fe43437005a72cfd4..59b2af78ae1933d211bd3e7b555265e0c9c36e41 100644 (file)
@@ -1345,6 +1345,7 @@ static size_t testDecodeWithDict(U32 seed, size_t dictSize)
                 errorDetected = ERROR(corruption_detected);
                 goto dictTestCleanup;
             }
+            ZSTD_freeDCtx(dctx);
         }
     }