From a60bffc94f84969084a2625f701cf98790e92c4a Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Fri, 3 Feb 2023 08:51:00 +1000 Subject: Convert some errant malloc/free to Jim_Alloc()/Jim_Free() Go through the Jim versions where it makes sense so we can add debugging or other features as required. Signed-off-by: Steve Bennett --- jim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jim.c') diff --git a/jim.c b/jim.c index b984873..38d8a70 100644 --- a/jim.c +++ b/jim.c @@ -2502,7 +2502,7 @@ static void StringAppendString(Jim_Obj *objPtr, const char *str, int len) if (objPtr->internalRep.strValue.maxLength < needlen || objPtr->internalRep.strValue.maxLength == 0) { needlen *= 2; - /* Inefficient to malloc() for less than 8 bytes */ + /* Inefficient to alloc for less than 8 bytes */ if (needlen < 7) { needlen = 7; } -- cgit v1.1