Update
diff --git a/nlsr.c b/nlsr.c
index 6b55078..b3d38e9 100644
--- a/nlsr.c
+++ b/nlsr.c
@@ -311,8 +311,7 @@
 	hashtb_end(e);
 
 	
-	hashtb_destroy(&nlsr->lsdb->adj_lsdb);
-	hashtb_destroy(&nlsr->lsdb->name_lsdb);
+
 	hashtb_destroy(&nlsr->adl);
 	hashtb_destroy(&nlsr->npl);
 	ccn_schedule_destroy(&nlsr->sched);
@@ -338,7 +337,8 @@
 	nlsr->in_content.p = &incoming_content;
 
 	nlsr->lsdb=(struct linkStateDatabase *)malloc(sizeof(struct linkStateDatabase *));
-	nlsr->lsdb->version=0;
+	nlsr->lsdb->version=(char *)malloc(16);
+	nlsr->lsdb->version="0000000000000000";
 
 	nlsr->lsdb->adj_lsdb = hashtb_create(sizeof(struct adj_lsa), &param_adj_lsdb);
 	nlsr->lsdb->name_lsdb = hashtb_create(sizeof(struct name_lsa), &param_name_lsdb);