summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 30e5dda..b2d3668 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -650,6 +650,7 @@ int option_file_parser(DltDaemonLocal *daemon_local)
if (daemon_local->flags.ipNodes == NULL) {
dlt_vlog(LOG_ERR, "Could not allocate for IP list\n");
+ fclose(pFile);
return -1;
}
else {
@@ -666,6 +667,7 @@ int option_file_parser(DltDaemonLocal *daemon_local)
if (newNode == NULL) {
dlt_vlog(LOG_ERR, "Could not allocate for IP list\n");
+ fclose(pFile);
return -1;
}
else {