From fd45a864fbef1087e0d870dd98a4d683c20ad0e3 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Fri, 13 Dec 2024 15:08:40 -0700 Subject: [PATCH] Fix SFTP build with WOLFSSH_FATFS --- src/wolfsftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfsftp.c b/src/wolfsftp.c index 1b1793725..92f7ec903 100644 --- a/src/wolfsftp.c +++ b/src/wolfsftp.c @@ -3035,7 +3035,7 @@ static int wolfSSH_SFTPNAME_readdir(WOLFSSH* ssh, WDIR* dir, WS_SFTPNAME* out, != WS_SUCCESS) { WLOG(WS_LOG_SFTP, "Unable to get attribute values for %s", out->fName); - WFREE(buf, out->heap, DYNTYPE_SFTP); + WFREE(out->fName, out->heap, DYNTYPE_SFTP); return WS_FATAL_ERROR; } }