diff options
author | RalphNiemeyer <rniemeyer@de.adit-jv.com> | 2017-03-23 10:04:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 10:04:53 +0100 |
commit | 7a1c8bd5272a3a8c5d8c88c5c66ebf8a23c6429f (patch) | |
tree | 546abe7fa8b7108ff7d76de24532234acca50fdb /src/console/dlt-control-common.c | |
parent | 84c35df786d30b5fe7828b8400fe7b0d6c087138 (diff) | |
parent | 859802afd10d159b9e370058bca53c8c12bba2f5 (diff) | |
download | DLT-daemon-7a1c8bd5272a3a8c5d8c88c5c66ebf8a23c6429f.tar.gz |
Merge pull request #7 from clipka/devel_dlt_client_cleanup_fix
dlt-client: fix dlt_client_cleanup memory handling
Diffstat (limited to 'src/console/dlt-control-common.c')
-rw-r--r-- | src/console/dlt-control-common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/console/dlt-control-common.c b/src/console/dlt-control-common.c index 3973059..56a1795 100644 --- a/src/console/dlt-control-common.c +++ b/src/console/dlt-control-common.c @@ -479,7 +479,11 @@ static int dlt_control_init_connection(DltClient *client, void *cb) if (dlt_parse_config_param("ControlSocketPath", &client->socketPath) != 0) { /* Failed to read from conf, copy default */ - client->socketPath = strdup(DLT_DAEMON_DEFAULT_CTRL_SOCK_PATH); + if(dlt_client_set_socket_path(client, DLT_DAEMON_DEFAULT_CTRL_SOCK_PATH) == -1) + { + pr_error("set socket path didn't succeed\n"); + return -1; + } } client->mode = DLT_CLIENT_MODE_UNIX; |