Merge pull request #9498 from ThomasWaldmann/hashindex-memleak-1.4

hashindex: fix memory leak, fixes #9497
This commit is contained in:
TW 2026-03-18 18:55:01 +01:00 committed by GitHub
commit f4dacad528
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,11 +131,13 @@ hashindex_free_buckets(HashIndex *index)
#ifndef BORG_NO_PYTHON
if(index->buckets_buffer.buf) {
PyBuffer_Release(&index->buckets_buffer);
index->buckets_buffer.buf = NULL;
} else
#endif
{
free(index->buckets);
}
index->buckets = NULL;
}
static int