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:
Simon Wilkinson 2011-10-10 19:01:26 -05:00 committed by Derrick Brashear
parent 69f54d4748
commit ab866c821a

View File

@ -235,7 +235,6 @@ FindBlobs(dir_file_t dir, int nblobs)
/* read the page in. */
if (DRead(dir, i, &pagebuf) != 0) {
DRelease(&headerbuf, 1);
break;
}
pp = (struct PageHeader *)pagebuf.data;