Skip to content

Commit fd45a86

Browse files
committed
Fix SFTP build with WOLFSSH_FATFS
1 parent b86dc9a commit fd45a86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)