Skip to content

Commit

Permalink
lib/hdf5-db: Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuhn committed Mar 16, 2021
1 parent bfb6da4 commit 28e58c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/hdf5-db/jhdf5-db-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ H5VL_julea_db_object_unref(JHDF5Object_t* object)
H5VL_julea_db_object_unref(object->dataset.file);
g_free(object->dataset.name);

H5VL_julea_db_object_unref(object->dataset.space);
H5VL_julea_db_object_unref(object->dataset.datatype);

if (object->dataset.distribution)
{
j_distribution_unref(object->dataset.distribution);
Expand All @@ -140,6 +143,9 @@ H5VL_julea_db_object_unref(JHDF5Object_t* object)
H5VL_julea_db_object_unref(object->attr.file);
g_free(object->attr.name);

H5VL_julea_db_object_unref(object->attr.space);
H5VL_julea_db_object_unref(object->attr.datatype);

if (object->attr.distribution)
{
j_distribution_unref(object->attr.distribution);
Expand Down

0 comments on commit 28e58c3

Please sign in to comment.