summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5FDlog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index cb04b80..fdc2c92 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -598,6 +598,11 @@ H5FD_log_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
/* Get the flags for logging */
file->fa.flags = fa->flags;
+ if(fa->logfile)
+ file->fa.logfile = HDstrdup(fa->logfile);
+ else
+ file->fa.logfile = NULL;
+ file->fa.buf_size = fa->buf_size;
/* Check if we are doing any logging at all */
if(file->fa.flags != 0) {
@@ -798,6 +803,11 @@ H5FD_log_close(H5FD_t *_file)
HDfclose(file->logfp);
} /* end if */
+ if(file->fa.logfile) {
+ HDfree(file->fa.logfile);
+ file->fa.logfile = NULL;
+ }
+
/* Release the file info */
file = H5FL_FREE(H5FD_log_t, file);