From 3f701fda6528be0844afa2315c2a28357591349a Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Tue, 29 Jul 2014 11:51:24 -0500 Subject: [svn-r25487] store all members of the driver info in the file structs since they will be needed if H5Pget_create_plist is called. tested jam. minor change. --- src/H5FDlog.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- cgit v0.12