From 64cfd95313cb2f8b62cdfbe22a134889028b34e2 Mon Sep 17 00:00:00 2001
From: Brian Demsky <bdemsky@uci.edu>
Date: Thu, 2 Aug 2012 15:40:40 -0700
Subject: [PATCH] bug fix

---
 snapshot-interface.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snapshot-interface.cc b/snapshot-interface.cc
index 5d160e1..072c1f9 100644
--- a/snapshot-interface.cc
+++ b/snapshot-interface.cc
@@ -123,8 +123,8 @@ int SnapshotStack::backTrackBeforeStep(int seqindex) {
 			return stack->index;
 		}
 		struct stackEntry *tmp=stack;
-		MYFREE(tmp);
 		stack=stack->next;
+		MYFREE(tmp);
 	}
 }
 
-- 
2.34.1