Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Bug Fixes
- Fix writing and reading of string columns with length
1 vectors in numpy 2.
- Fix building against NumPy 2.3.0.
- Fix potential free of null pointer in stringlist_delete

version 1.2.5
-------------
Expand Down
6 changes: 4 additions & 2 deletions fitsio/fitsio_pywrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,12 @@ static struct stringlist* stringlist_delete(struct stringlist* slist) {
size_t i=0;
if (slist->data != NULL) {
for (i=0; i < slist->size; i++) {
free(slist->data[i]);
if (slist->data[i] != NULL) {
free(slist->data[i]);
}
}
free(slist->data);
}
free(slist->data);
free(slist);
}
return NULL;
Expand Down
Loading