Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
f5778e01
Commit
f5778e01
authored
Jun 20, 2019
by
gsell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '18-memory-leaks-in-h5part' into 'master'
Resolve "memory leaks in H5Part" Closes
#18
See merge request
!3
parents
be7cd1d4
fb084fdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/h5core/h5u_io.c
src/h5core/h5u_io.c
+1
-0
src/h5core/h5u_model.c
src/h5core/h5u_model.c
+4
-1
No files found.
src/h5core/h5u_io.c
View file @
f5778e01
...
...
@@ -254,5 +254,6 @@ h5u_write_dataset (
hid_t
dset_id
;
TRY
(
dset_id
=
h5u_open_dataset
(
fh
,
name
,
type
));
TRY
(
h5u_write
(
fh
,
dset_id
,
type
,
data
));
TRY
(
hdf5_close_dataset
(
dset_id
));
H5_RETURN
(
H5_SUCCESS
);
}
src/h5core/h5u_model.c
View file @
f5778e01
...
...
@@ -152,6 +152,8 @@ h5u_set_num_items (
TRY
(
hdf5_close_dataspace
(
u
->
shape
));
u
->
shape
=
H5S_ALL
;
TRY
(
hdf5_close_dataspace
(
u
->
memshape
));
u
->
memshape
=
H5S_ALL
;
u
->
nparticles
=
(
hsize_t
)
nparticles
;
...
...
@@ -212,7 +214,8 @@ h5u_set_num_items (
TRY
(
u
->
shape
=
hdf5_create_dataspace
(
1
,
&
count
,
NULL
)
);
/* declare overall data size but then will select a subset */
TRY
(
u
->
diskshape
=
hdf5_create_dataspace
(
1
,
&
count
,
NULL
)
);
TRY
(
hdf5_close_dataspace
(
u
->
diskshape
));
TRY
(
u
->
diskshape
=
hdf5_create_dataspace
(
1
,
&
count
,
NULL
));
count
=
nparticles
;
if
(
count
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment