Memory Leak Reduction
diff --git a/nlsr_adl.c b/nlsr_adl.c
index 2babc55..f93eba7 100644
--- a/nlsr_adl.c
+++ b/nlsr_adl.c
@@ -688,9 +688,10 @@
exit(1);
}
- struct ccn_indexbuf cid={0};
+ //struct ccn_indexbuf cid={0};
- struct ccn_indexbuf *components=&cid;
+ //struct ccn_indexbuf *components=&cid;
+ struct ccn_indexbuf *components=ccn_indexbuf_create();
ccn_name_split (name, components);
for(i=components->n-2;i> (0+offset);i--)
@@ -721,6 +722,7 @@
// 01/31/2013
free(neighbor);
ccn_charbuf_destroy(&name);
+ ccn_indexbuf_destroy(&components);
}