timeserver: Timeserver array was not freed
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 10 Apr 2012 07:28:18 +0000 (10:28 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 12 Apr 2012 08:13:01 +0000 (11:13 +0300)
src/timeserver.c

index e8a9d15..2fcdb94 100644 (file)
@@ -228,6 +228,8 @@ int __connman_timeserver_sync(struct connman_service *default_service)
        for (i=0; timeservers != NULL && timeservers[i] != NULL; i++)
                ts_list = g_slist_prepend(ts_list, g_strdup(timeservers[i]));
 
+       g_strfreev(timeservers);
+
        fallback_ts = connman_setting_get_string_list("FallbackTimeservers");
 
        /* Lastly add the fallback servers */