diff options
author | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-12-19 16:10:41 +0100 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-12-21 10:16:46 +0100 |
commit | ab105d1671789fc9bd649f7e9ce3e6af22d30f0e (patch) | |
tree | 1cb0a74e08cad0723cd3c601f0fa1842be9d96f2 /src/offlinelogstorage/dlt_offline_logstorage.c | |
parent | d34dc8fd10ff4dec56d5a221443f91fc26d10d11 (diff) | |
download | DLT-daemon-ab105d1671789fc9bd649f7e9ce3e6af22d30f0e.tar.gz |
Cleanup of unit test fixes
Signed-off-by: Manikandan C <mchockalingam@de.adit-jv.com>
Diffstat (limited to 'src/offlinelogstorage/dlt_offline_logstorage.c')
-rw-r--r-- | src/offlinelogstorage/dlt_offline_logstorage.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/offlinelogstorage/dlt_offline_logstorage.c b/src/offlinelogstorage/dlt_offline_logstorage.c index c85af6e..42fcfcb 100644 --- a/src/offlinelogstorage/dlt_offline_logstorage.c +++ b/src/offlinelogstorage/dlt_offline_logstorage.c @@ -198,6 +198,7 @@ DLT_STATIC int dlt_logstorage_list_add(char *key, { free(tmp->key); free(tmp); + tmp->key = NULL; tmp = NULL; return -1; } @@ -207,6 +208,8 @@ DLT_STATIC int dlt_logstorage_list_add(char *key, free(tmp->key); free(tmp->data); free(tmp); + tmp->key = NULL; + tmp->data = NULL; tmp = NULL; return -1; } |