From: Daniel Wagner Date: Thu, 17 Mar 2011 13:25:40 +0000 (+0100) Subject: timeserver: Fix memory leak X-Git-Tag: 2.0_alpha~1648 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=384e5e62e95e0f7a327be3cf2498c73795564139;p=framework%2Fconnectivity%2Fconnman.git timeserver: Fix memory leak Reported by: DJ Cozatt --- diff --git a/src/timeserver.c b/src/timeserver.c index 584be26..3224f47 100644 --- a/src/timeserver.c +++ b/src/timeserver.c @@ -102,6 +102,8 @@ int connman_timeserver_append(const char *server) if (driver->append(server) == 0) { g_hash_table_insert(server_hash, new_server, driver); return 0; + } else { + g_free(new_server); } }