aboutsummaryrefslogtreecommitdiff
path: root/source/snaporig.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/snaporig.c')
-rw-r--r--source/snaporig.c4
1 files changed, 2 insertions, 2 deletions
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);