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>
/* read the page in. */
if (DRead(dir, i, &pagebuf) != 0) {
- DRelease(&headerbuf, 1);
break;
}
pp = (struct PageHeader *)pagebuf.data;