mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
dir: Remove double release in FindBlobs
When DRead() fails, we DRelease the entrybuf, then break. However, this break takes us to the end of the function, where we promptly DRelease again, causing a double free Change-Id: I5a0293990e01376525d8adae25477c64e2cc93ad Reviewed-on: http://gerrit.openafs.org/5655 Reviewed-by: Derrick Brashear <shadow@dementix.org> Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
69f54d4748
commit
ab866c821a
@ -235,7 +235,6 @@ FindBlobs(dir_file_t dir, int nblobs)
|
|||||||
|
|
||||||
/* read the page in. */
|
/* read the page in. */
|
||||||
if (DRead(dir, i, &pagebuf) != 0) {
|
if (DRead(dir, i, &pagebuf) != 0) {
|
||||||
DRelease(&headerbuf, 1);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pp = (struct PageHeader *)pagebuf.data;
|
pp = (struct PageHeader *)pagebuf.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user