summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorGordan Markuš <gordan.markus@pelagicore.com>2017-09-12 15:18:13 +0200
committerChristoph Lipka <clipka@users.noreply.github.com>2017-09-12 15:18:13 +0200
commit7ce0a91746ccd2f8658f3056a3e8148a627309db (patch)
tree4849dadc1151ec9aa0cce5267737dde13a7408d0 /src/shared
parent25c8d74f11004d97344f5c2233503be5c72b0ecd (diff)
downloadDLT-daemon-7ce0a91746ccd2f8658f3056a3e8148a627309db.tar.gz
fix various memory leaks (#28)
* dlt_common: Fix resource leak Close the file before returning from function. Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com> * dlt-kpi-process: Fix memory leak Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com> * dlt-kpi-options: Clean up resources on malloc fail Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dlt_common.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 8808801..b98c7fa 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -477,7 +477,6 @@ DltReturnValue dlt_filter_load(DltFilter *filter, const char *filename, int verb
{
snprintf(str,DLT_COMMON_BUFFER_LENGTH, "Maximum number (%d) of allowed filters reached, ignoring rest of filters!\n", DLT_FILTER_MAX);
dlt_log(LOG_WARNING, str);
- return DLT_RETURN_OK;
}
}