Skip to content

Commit 0d9b0a2

Browse files
committed
hdf5: ensure appendData.strs pointers are nil
1 parent 229165f commit 0d9b0a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

h5pt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ func (ad *appendData) free() {
3232
C.free(ad.ptr)
3333
ad.ptr = nil
3434

35-
for _, str := range ad.strs {
35+
for i, str := range ad.strs {
3636
C.free(str)
37-
str = nil
37+
ad.strs[i] = nil
3838
}
3939
}
4040

0 commit comments

Comments
 (0)