diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-03-17 14:25:40 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-17 17:48:16 +0100 |
commit | 384e5e62e95e0f7a327be3cf2498c73795564139 (patch) | |
tree | 045d86ba6c655df3feab52fabef125666674f5b3 /src/timeserver.c | |
parent | cb380a11fb32146d9e2bd9d9ae7f1539f7b21563 (diff) | |
download | connman-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.c | 2 |
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); } } |