Fix buffer leak in dir/buffers.c

Checkin 0284e65f97 accidently
threw in a trailing semicolon after an if statement.
Since the next line was a break this had several unfortunate
side effects, the most obvious being that we leaked a buffer
in certain cases.

Change-Id: I4f1043426cac22c70b64731c98ac858d82e2f11e
Reviewed-on: http://gerrit.openafs.org/5498
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Rod Widdowson 2011-09-23 16:37:43 +01:00 committed by Jeffrey Altman
parent a020c572d3
commit c2f7627a89

View File

@ -473,7 +473,7 @@ afs_dir_IsEmpty(dir_file_t dir)
while (num != 0 && elements < BIGMAXPAGES * EPP) {
elements++;
/* Walk down the hash table list. */
if (afs_dir_GetVerifiedBlob(dir, num, &entrybuf) != 0);
if (afs_dir_GetVerifiedBlob(dir, num, &entrybuf) != 0)
break;
ep = (struct DirEntry *)entrybuf.data;
if (strcmp(ep->name, "..") && strcmp(ep->name, ".")) {