From: Brian Behlendorf Date: Wed, 18 Mar 2009 18:56:00 +0000 (-0700) Subject: Fix vmem leak in kmem_cache_test (missing splat_kmem_cache_test_kcp_free()) X-Git-Tag: spl-0.4.3~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f250d90b5f1586cdee79d1612a1a4361ab69afe2;p=spl Fix vmem leak in kmem_cache_test (missing splat_kmem_cache_test_kcp_free()) --- diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c index f12cd34..f7ea580 100644 --- a/module/splat/splat-kmem.c +++ b/module/splat/splat-kmem.c @@ -611,6 +611,7 @@ splat_kmem_cache_test(struct file *file, void *arg, char *name, rc = -EINVAL; } + splat_kmem_cache_test_kcp_free(kcp); splat_vprint(file, name, "Successfully ran ctors/dtors for %d elements in '%s'\n", max, SPLAT_KMEM_CACHE_NAME);