summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5P.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 6496363..ba3162e 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -6914,8 +6914,12 @@ static herr_t H5P_unregister(H5P_genclass_t *pclass, const char *name)
/* Remove property from property list */
/* Check if the property being removed is at the head of the list for a hash location */
- if(prop==pclass->props[loc])
+ if(prop==pclass->props[loc]) {
pclass->props[loc]=prop->next;
+
+ /* Free the property, ignoring return value, nothing we can do */
+ H5P_free_prop(prop);
+ } /* end if */
else {
/* Set up initial pointers */
prev=tprop=pclass->props[loc];