summaryrefslogtreecommitdiff
path: root/src/timeserver.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-03-17 14:25:40 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-03-17 17:48:16 +0100
commit384e5e62e95e0f7a327be3cf2498c73795564139 (patch)
tree045d86ba6c655df3feab52fabef125666674f5b3 /src/timeserver.c
parentcb380a11fb32146d9e2bd9d9ae7f1539f7b21563 (diff)
downloadconnman-384e5e62e95e0f7a327be3cf2498c73795564139.tar.gz
connman-384e5e62e95e0f7a327be3cf2498c73795564139.tar.bz2
connman-384e5e62e95e0f7a327be3cf2498c73795564139.zip
timeserver: Fix memory leak
Reported by: DJ Cozatt <ygdrasil@comcast.net>
Diffstat (limited to 'src/timeserver.c')
-rw-r--r--src/timeserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeserver.c b/src/timeserver.c
index 584be263..3224f476 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);
}
}