aboutsummaryrefslogtreecommitdiffstats
path: root/extension/filefuncs.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-03-08 21:54:42 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-03-08 21:54:42 +0200
commitb2177d5473a38d9dcc6c9ae9a8e115b45f689d0d (patch)
tree0cb2d77735d818cf967428ed789b8e480b89216f /extension/filefuncs.c
parenta0841dfa1e1a7ebdd8d29188ce7b304c67daa42d (diff)
parentb4343b17479151d438d32530cdd2541262e3088e (diff)
downloadegawk-b2177d5473a38d9dcc6c9ae9a8e115b45f689d0d.tar.gz
egawk-b2177d5473a38d9dcc6c9ae9a8e115b45f689d0d.tar.bz2
egawk-b2177d5473a38d9dcc6c9ae9a8e115b45f689d0d.zip
Merge branch 'gawk-4.1-stable' of ssh://git.sv.gnu.org/srv/git/gawk into gawk-4.1-stable
Diffstat (limited to 'extension/filefuncs.c')
-rw-r--r--extension/filefuncs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/filefuncs.c b/extension/filefuncs.c
index 3eb2a6b5..58acab4d 100644
--- a/extension/filefuncs.c
+++ b/extension/filefuncs.c
@@ -284,7 +284,7 @@ read_symlink(const char *fname, size_t bufsize, ssize_t *linksize)
returns -1 with errno == ERANGE if the buffer is
too small. */
if (errno != ERANGE) {
- free(buf);
+ gawk_free(buf);
return NULL;
}
}
@@ -293,7 +293,7 @@ read_symlink(const char *fname, size_t bufsize, ssize_t *linksize)
buf[*linksize] = '\0';
return buf;
}
- free(buf);
+ gawk_free(buf);
if (bufsize <= MAXSIZE/2)
bufsize *= 2;
else if (bufsize < MAXSIZE)
@@ -854,7 +854,7 @@ do_fts(int nargs, awk_value_t *result)
out:
if (pathvector != NULL)
- free(pathvector);
+ gawk_free(pathvector);
if (path_array != NULL)
(void) release_flattened_array(pathlist.array_cookie, path_array);