mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-24 15:47:12 -04:00
Merge pull request #9500 from ThomasWaldmann/hashindex-memleak-1.1
Some checks are pending
CI / lint (push) Waiting to run
CI / pytest (macos-11, 3.7, py37) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.10, py310) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.5, py35) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.6, py36) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.7, py37) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.8, py38) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.9, py39) (push) Blocked by required conditions
Some checks are pending
CI / lint (push) Waiting to run
CI / pytest (macos-11, 3.7, py37) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.10, py310) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.5, py35) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.6, py36) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.7, py37) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.8, py38) (push) Blocked by required conditions
CI / pytest (ubuntu-20.04, 3.9, py39) (push) Blocked by required conditions
hashindex: fix memory leak, fixes #9497
This commit is contained in:
commit
951e5849f3
1 changed files with 2 additions and 0 deletions
|
|
@ -107,11 +107,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue