Skip to content

Commit a2ed75e

Browse files
authored
Merge pull request wolfSSL#756 from lealem47/fatfs_build
Fix SFTP build with WOLFSSH_FATFS
2 parents 93af2c2 + fd45a86 commit a2ed75e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wolfsftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ static int wolfSSH_SFTPNAME_readdir(WOLFSSH* ssh, WDIR* dir, WS_SFTPNAME* out,
30353035
!= WS_SUCCESS) {
30363036
WLOG(WS_LOG_SFTP, "Unable to get attribute values for %s",
30373037
out->fName);
3038-
WFREE(buf, out->heap, DYNTYPE_SFTP);
3038+
WFREE(out->fName, out->heap, DYNTYPE_SFTP);
30393039
return WS_FATAL_ERROR;
30403040
}
30413041
}

0 commit comments

Comments
 (0)