From 761d752569b9bad6bdb755e91ca9e345cfb2788d Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 29 Oct 2014 06:47:46 +0100 Subject: C++ cleanups. (in progress) --- source/snaporig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/snaporig.c') diff --git a/source/snaporig.c b/source/snaporig.c index 69ff33e..add1c09 100644 --- a/source/snaporig.c +++ b/source/snaporig.c @@ -161,9 +161,9 @@ static int ReadBlock (const char *key, void *block, int max_len, STREAM snap) if (rem) { - char *junk = new char [rem]; + char *junk = (char*)malloc(rem); READ_STREAM (junk, rem, snap); - delete[] junk; + free(junk); } return (SUCCESS); -- cgit v1.2.3