Segfault Fixt
diff --git a/nlsr_fib.c b/nlsr_fib.c
index a83899d..25532b4 100644
--- a/nlsr_fib.c
+++ b/nlsr_fib.c
@@ -113,12 +113,15 @@
return res;
cleanup:
- ccn_forwarding_entry_destroy(&new_forwarding_entry);
- ccn_charbuf_destroy(&signed_info);
- ccn_charbuf_destroy(&temp);
- ccn_charbuf_destroy(&resultbuf);
+ if ( signed_info )
+ ccn_charbuf_destroy(&signed_info);
+ if ( temp )
+ ccn_charbuf_destroy(&temp);
+ if ( resultbuf )
+ ccn_charbuf_destroy(&resultbuf);
ccn_charbuf_destroy(&name);
- ccn_charbuf_destroy(&prefixreg);
+ if ( prefixreg )
+ ccn_charbuf_destroy(&prefixreg);
return -1;
}