NULL initialization to prevent invalid mem access 88/229588/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Thu, 2 Apr 2020 06:09:43 +0000 (15:09 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 2 Apr 2020 06:20:20 +0000 (15:20 +0900)
Change-Id: I017703a931ebf7439edaf944221370091b87afb1
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/oal-gatt.c

index 2ebd7fd..15ce299 100644 (file)
@@ -292,6 +292,7 @@ oal_status_t gatt_disable(void)
        }
 
        g_slist_free_full(gatt_servers, g_free);
+       gatt_servers = NULL;
        return OAL_STATUS_SUCCESS;
 }