summaryrefslogtreecommitdiffstats
path: root/src/H5Spoint.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-08-27 17:56:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-08-27 17:56:50 (GMT)
commit1100b30ddcc9372533d977b50e91b46afb3b48d5 (patch)
treef33071b6c9f8f28f2f6727f0156224625a0ddd02 /src/H5Spoint.c
parent19087108910ba22cd71138b8eec663cfa6bdeb1a (diff)
downloadhdf5-1100b30ddcc9372533d977b50e91b46afb3b48d5.zip
hdf5-1100b30ddcc9372533d977b50e91b46afb3b48d5.tar.gz
hdf5-1100b30ddcc9372533d977b50e91b46afb3b48d5.tar.bz2
[svn-r622] Fixed memory leak in point selections.
Diffstat (limited to 'src/H5Spoint.c')
-rw-r--r--src/H5Spoint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Spoint.c b/src/H5Spoint.c
index a2fac8d..166721b 100644
--- a/src/H5Spoint.c
+++ b/src/H5Spoint.c
@@ -663,6 +663,10 @@ H5S_point_release (H5S_t *space)
curr=next;
} /* end while */
+ /* Free & reset the point list header */
+ H5MM_xfree(space->select.sel_info.pnt_lst);
+ space->select.sel_info.pnt_lst=NULL;
+
/* Reset the number of elements in the selection */
space->select.num_elem=0;