@@ -1133,41 +1133,41 @@ void SshResourceFree(WOLFSSH* ssh, void* heap)
11331133
11341134#ifdef WOLFSSH_SCP
11351135 if (ssh -> scpConfirmMsg ) {
1136- WFREE (ssh -> scpConfirmMsg , ssh -> ctx -> heap , DYNTYPE_STRING );
1136+ WFREE (ssh -> scpConfirmMsg , heap , DYNTYPE_STRING );
11371137 ssh -> scpConfirmMsg = NULL ;
11381138 ssh -> scpConfirmMsgSz = 0 ;
11391139 }
11401140 if (ssh -> scpFileBuffer ) {
11411141 ForceZero (ssh -> scpFileBuffer , ssh -> scpFileBufferSz );
1142- WFREE (ssh -> scpFileBuffer , ssh -> ctx -> heap , DYNTYPE_BUFFER );
1142+ WFREE (ssh -> scpFileBuffer , heap , DYNTYPE_BUFFER );
11431143 ssh -> scpFileBuffer = NULL ;
11441144 ssh -> scpFileBufferSz = 0 ;
11451145 }
11461146 if (ssh -> scpFileName ) {
1147- WFREE (ssh -> scpFileName , ssh -> ctx -> heap , DYNTYPE_STRING );
1147+ WFREE (ssh -> scpFileName , heap , DYNTYPE_STRING );
11481148 ssh -> scpFileName = NULL ;
11491149 ssh -> scpFileNameSz = 0 ;
11501150 }
11511151 if (ssh -> scpRecvMsg ) {
1152- WFREE (ssh -> scpRecvMsg , ssh -> ctx -> heap , DYNTYPE_STRING );
1152+ WFREE (ssh -> scpRecvMsg , heap , DYNTYPE_STRING );
11531153 ssh -> scpRecvMsg = NULL ;
11541154 ssh -> scpRecvMsgSz = 0 ;
11551155 }
11561156#ifdef WOLFSSL_NUCLEUS
1157- WFREE (ssh -> scpBasePathDynamic , ssh -> ctx -> heap , DYNTYPE_BUFFER );
1157+ WFREE (ssh -> scpBasePathDynamic , heap , DYNTYPE_BUFFER );
11581158 ssh -> scpBasePathDynamic = NULL ;
11591159 ssh -> scpBasePathSz = 0 ;
11601160#endif
11611161#endif
11621162#ifdef WOLFSSH_SFTP
11631163 if (ssh -> sftpDefaultPath ) {
1164- WFREE (ssh -> sftpDefaultPath , ssh -> ctx -> heap , DYNTYPE_STRING );
1164+ WFREE (ssh -> sftpDefaultPath , heap , DYNTYPE_STRING );
11651165 ssh -> sftpDefaultPath = NULL ;
11661166 }
11671167#endif
11681168#ifdef WOLFSSH_TERM
11691169 if (ssh -> modes ) {
1170- WFREE (ssh -> modes , ssh -> ctx -> heap , DYNTYPE_STRING );
1170+ WFREE (ssh -> modes , heap , DYNTYPE_STRING );
11711171 ssh -> modesSz = 0 ;
11721172 }
11731173#endif
0 commit comments