diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2013-06-12 11:02:57 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-06-12 15:53:43 +0300 |
commit | 35ccdc87f8b6854703eaf9812466e484dd276e0a (patch) | |
tree | 631b2a5949f82b64466a6fc7bb4ec652f072d8fc | |
parent | 5f5910b81a640032f3c1520ff5329c014cbc1827 (diff) | |
download | connman-35ccdc87f8b6854703eaf9812466e484dd276e0a.tar.gz connman-35ccdc87f8b6854703eaf9812466e484dd276e0a.tar.bz2 connman-35ccdc87f8b6854703eaf9812466e484dd276e0a.zip |
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.
-rw-r--r-- | src/ippool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ippool.c b/src/ippool.c index 531745eb..ba613fb1 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; } |