From 3886bf3ac62608cac6e30d3341d2e715cfcb9893 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 5 Apr 2018 22:26:04 +0000
Subject: [PATCH] The real apparent fix for the free() assertion: use
 free_crypt_attrstr() instead

---
 src/sbbs3/ftpsrvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/ftpsrvr.c b/src/sbbs3/ftpsrvr.c
index c5e2f9cca0..fe09249d3d 100644
--- a/src/sbbs3/ftpsrvr.c
+++ b/src/sbbs3/ftpsrvr.c
@@ -1950,7 +1950,7 @@ static BOOL start_tls(SOCKET *sock, CRYPT_SESSION *sess, BOOL resp)
 		GCES(status, *sock, CRYPT_UNUSED, estr, "creating session");
 		if (estr) {
 			lprintf(level, "%04d FTP %s", *sock, estr);
-			free(estr);
+			free_crypt_attrstr(estr);
 		}
 		if (resp)
 			sockprintf(*sock, *sess, "431 TLS not available");
-- 
GitLab