mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
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:
parent
a020c572d3
commit
c2f7627a89
@ -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, ".")) {
|
||||
|
Loading…
Reference in New Issue
Block a user