aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2023-02-03 08:51:00 +1000
committerSteve Bennett <steveb@workware.net.au>2023-02-03 08:51:00 +1000
commita60bffc94f84969084a2625f701cf98790e92c4a (patch)
tree401770cf87b4923344808aac9450d477567474ae /jim.c
parent46b109be9508b44983f3d5d9a2787a56b50b7cbc (diff)
downloadjimtcl-a60bffc94f84969084a2625f701cf98790e92c4a.zip
jimtcl-a60bffc94f84969084a2625f701cf98790e92c4a.tar.gz
jimtcl-a60bffc94f84969084a2625f701cf98790e92c4a.tar.bz2
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 <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
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;
}