projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iptables: Refactoring how jumps are handled
[framework/connectivity/connman.git]
/
src
/
timeserver.c
diff --git
a/src/timeserver.c
b/src/timeserver.c
index
584be26
..
038d44b
100644
(file)
--- a/
src/timeserver.c
+++ b/
src/timeserver.c
@@
-23,6
+23,8
@@
#include <config.h>
#endif
+#include <errno.h>
+
#include <glib.h>
#include "connman.h"
@@
-102,6
+104,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);
}
}