summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-06-12 08:02:57 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-06-12 12:53:43 (GMT)
commit35ccdc87f8b6854703eaf9812466e484dd276e0a (patch)
tree631b2a5949f82b64466a6fc7bb4ec652f072d8fc /src
parent5f5910b81a640032f3c1520ff5329c014cbc1827 (diff)
downloadconnman-35ccdc87f8b6854703eaf9812466e484dd276e0a.zip
connman-35ccdc87f8b6854703eaf9812466e484dd276e0a.tar.gz
connman-35ccdc87f8b6854703eaf9812466e484dd276e0a.tar.bz2
ippool: Clear allocated block pointer at cleanup
Without this the unit tests might core dump as the allocated_block pointer would point to already freed memory.
Diffstat (limited to 'src')
-rw-r--r--src/ippool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ippool.c b/src/ippool.c
index 531745e..ba613fb 100644
--- a/src/ippool.c
+++ b/src/ippool.c
@@ -465,4 +465,5 @@ void __connman_ippool_cleanup(void)
g_slist_free(allocated_blocks);
last_block = 0;
+ allocated_blocks = NULL;
}