diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-06-04 04:08:18 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-06-04 04:08:18 +0000 |
commit | e117a91706aede52ae6eb1a76d1c420fbb4bfdf5 (patch) | |
tree | 2f69d5fa82ec3ae1270071792570a37ea7cbe31f /usr.bin/xargs | |
parent | 6f8d079aaea19e3c1dde2c04d2a5df76604d8633 (diff) | |
download | FreeBSD-src-e117a91706aede52ae6eb1a76d1c420fbb4bfdf5.zip FreeBSD-src-e117a91706aede52ae6eb1a76d1c420fbb4bfdf5.tar.gz |
Err, duh, free(3) doesn't set its argument to NULL... Fix realloc of a freed
chunk.
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r-- | usr.bin/xargs/xargs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 3616249..0922abf 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -457,8 +457,10 @@ prerun(int argc, char **argv) /* * Free the input line buffer, if we have one. */ - if (inpline != NULL) + if (inpline != NULL) { free(inpline); + inpline = NULL; + } } static void |