summaryrefslogtreecommitdiff
path: root/src/ipv6pd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipv6pd.c')
-rwxr-xr-x[-rw-r--r--]src/ipv6pd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ipv6pd.c b/src/ipv6pd.c
index 5ecda389..0d221f07 100644..100755
--- a/src/ipv6pd.c
+++ b/src/ipv6pd.c
@@ -165,8 +165,10 @@ static void cleanup(void)
timer_uplink = 0;
}
- g_hash_table_destroy(timer_hash);
- timer_hash = NULL;
+ if (timer_hash) {
+ g_hash_table_destroy(timer_hash);
+ timer_hash = NULL;
+ }
if (prefixes) {
g_slist_free_full(prefixes, g_free);