commenting the freeing part after creating a slice
 line to resolve a bug. CHANGES ARE TEMPORARY
diff --git a/nlsr-sync-0.0/nlsr_sync.c b/nlsr-sync-0.0/nlsr_sync.c
index 7b4279b..7a05ec3 100644
--- a/nlsr-sync-0.0/nlsr_sync.c
+++ b/nlsr-sync-0.0/nlsr_sync.c
@@ -465,7 +465,6 @@
     ccns_slice_set_topo_prefix(nlsr->slice, topo, prefix);
     nlsr->closure->callback = &sync_callback;
     nlsr->ccns = ccns_open(nlsr->ccn, nlsr->slice, nlsr->closure, roothash, NULL);
-
 }
 
 struct ccn_charbuf *
@@ -584,14 +583,17 @@
  
   
     res = ccns_write_slice(nlsr->ccn, slice, slice_name);
-  
+ /*
+// 	Obaid: commenting out the following lines to resolve a bug. 
+//	If commenting them can resolve the issue, then we 
+//	need to call them before terminating the program.
     ccns_slice_destroy(&slice);
     ccn_charbuf_destroy(&prefix);
     ccn_charbuf_destroy(&topo);
     ccn_charbuf_destroy(&clause);
     ccn_charbuf_destroy(&slice_name);
     ccn_charbuf_destroy(&slice_uri);
-	
+*/
     return 0;
 }