From 977bc05c795281f164c11861de48b0b0e2111cae Mon Sep 17 00:00:00 2001 From: Brian Demsky Date: Thu, 24 May 2012 12:09:39 -0700 Subject: [PATCH] fix one segfault bug...something is still strange, but has to do with stack --- snapshot-interface.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapshot-interface.cc b/snapshot-interface.cc index 8971169..76cb8f4 100644 --- a/snapshot-interface.cc +++ b/snapshot-interface.cc @@ -92,13 +92,13 @@ int snapshotStack::backTrackBeforeStep(int seqindex) { return stack->index; } struct stackEntry *tmp=stack; - free(tmp); + MYFREE(tmp); stack=stack->next; } } void snapshotStack::snapshotStep(int seqindex) { - struct stackEntry *tmp=(struct stackEntry *)malloc(sizeof(struct stackEntry)); + struct stackEntry *tmp=(struct stackEntry *)MYMALLOC(sizeof(struct stackEntry)); tmp->next=stack; tmp->index=seqindex; tmp->snapshotid=takeSnapshot(); -- 2.34.1