diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-02-03 08:51:00 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-02-03 08:51:00 +1000 |
commit | a60bffc94f84969084a2625f701cf98790e92c4a (patch) | |
tree | 401770cf87b4923344808aac9450d477567474ae /jim-aio.c | |
parent | 46b109be9508b44983f3d5d9a2787a56b50b7cbc (diff) | |
download | jimtcl-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-aio.c')
-rw-r--r-- | jim-aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -865,12 +865,12 @@ static int aio_cmd_copy(Jim_Interp *interp, int argc, Jim_Obj *const *argv) if (count >= 16384 && bufp == buf) { /* Heuristic check - for large copy speed-up */ buflen = 65536; - bufp = malloc(buflen); + bufp = Jim_Alloc(buflen); } } if (bufp != buf) { - free(bufp); + Jim_Free(bufp); } if (JimCheckStreamError(interp, af) || JimCheckStreamError(interp, outf)) { |