From 5640210c7b587f753f126435c41995b78cbf13cf Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 4 Jul 2011 12:10:30 +0400 Subject: [PATCH] =?UTF-8?q?zclear()=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c/zalloc/zalloc_test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/c/zalloc/zalloc_test.c b/c/zalloc/zalloc_test.c index 07d82f9..2da738b 100644 --- a/c/zalloc/zalloc_test.c +++ b/c/zalloc/zalloc_test.c @@ -36,10 +36,8 @@ int main(int argc, char *argv[]) } } - for (i = 0; i < nobj; i++) { - zfree(p[i]); - p[i] = NULL; - } + for (i = 0; i < nobj; i++) + zclear(&p[i]); printf("Success, iterations = %lu, nobj = %lu\n", iterations, nobj);