Skip to content

Commit

Permalink
hdf5: ensure appendData.strs pointers are nil
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed May 23, 2018
1 parent 229165f commit 0d9b0a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions h5pt.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ func (ad *appendData) free() {
C.free(ad.ptr)
ad.ptr = nil

for _, str := range ad.strs {
for i, str := range ad.strs {
C.free(str)
str = nil
ad.strs[i] = nil
}
}

Expand Down

0 comments on commit 0d9b0a2

Please sign in to comment.