summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Muck <christian.muck@bmw.de>2012-05-08 15:56:17 +0200
committerChristian Muck <christian.muck@bmw.de>2012-05-30 09:05:28 +0200
commit8d991a15b354750c3c15058b518abd52058dff5a (patch)
tree671c59420d9a6a048a61c3cf9f5916212d8362af
parent04c33ad7f26b44288043c22ef7d2a97224538f18 (diff)
downloadDLT-daemon-8d991a15b354750c3c15058b518abd52058dff5a.tar.gz
Added important SEM_FREE in the daemon and closing fd in the filetransfer
Signed-off-by: Christian Muck <christian.muck@bmw.de>
-rw-r--r--src/daemon/dlt-daemon.c2
-rw-r--r--src/lib/dlt_filetransfer.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index be0eeb2..609c192 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -2240,7 +2240,7 @@ int dlt_daemon_send_ringbuffer_to_client(DltDaemon *daemon, DltDaemonLocal *daem
}
ret=write(j,data,length);
- DLT_DAEMON_SEM_LOCK();
+ DLT_DAEMON_SEM_FREE();
}
} /* if */
} /* for */
diff --git a/src/lib/dlt_filetransfer.c b/src/lib/dlt_filetransfer.c
index f8294c3..561d540 100644
--- a/src/lib/dlt_filetransfer.c
+++ b/src/lib/dlt_filetransfer.c
@@ -361,6 +361,7 @@ int dlt_user_log_file_data(DltContext *fileContext,const char *filename, int pac
DLT_STRING("for File:"),
DLT_STRING(filename)
);
+ fclose(file);
return DLT_FILETRANSFER_ERROR_FILE_DATA;
}