From 68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 25 Dec 2009 02:54:53 -0800 Subject: [PATCH] Add extra NULL pointer check for service configuration --- src/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.c b/src/config.c index af97831..d6b275d 100644 --- a/src/config.c +++ b/src/config.c @@ -151,6 +151,9 @@ static int load_service(GKeyFile *keyfile, struct connman_config *config) static void free_service(struct connman_config_service *service) { + if (service == NULL) + return; + g_free(service->type); g_free(service->ssid); g_free(service->eap); -- 2.7.4