summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dlt_filetransfer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/dlt_filetransfer.c b/src/lib/dlt_filetransfer.c
index 78084f0..3a4efc9 100644
--- a/src/lib/dlt_filetransfer.c
+++ b/src/lib/dlt_filetransfer.c
@@ -676,8 +676,10 @@ int dlt_user_log_file_data(DltContext *fileContext,
DLT_RAW(buffer, readBytes),
DLT_STRING("FLDA")
);
+ } else {
+ fclose(file);
+ return DLT_FILETRANSFER_ERROR_FILE_DATA_USER_BUFFER_FAILED;
}
-
doTimeout(timeout);
}
}