diff options
author | dg <dg@FreeBSD.org> | 1995-01-09 05:59:04 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-01-09 05:59:04 +0000 |
commit | 8441e720c7e936ff93a9597309ec8312a4b15fe8 (patch) | |
tree | 33b7e494eaa588dcd85ae331639692844d0075c7 /usr.bin/ranlib/touch.c | |
parent | 4969834bb25d688c299d10843d4c8f7cb2b61e29 (diff) | |
download | FreeBSD-src-8441e720c7e936ff93a9597309ec8312a4b15fe8.zip FreeBSD-src-8441e720c7e936ff93a9597309ec8312a4b15fe8.tar.gz |
Fixed two bugs: some malloced space wasn't freed after it was no longer
needed and the file wasn't closed when the -t option was used.
Originally by thomas@mathematik.uni-Bremen.de, but were incomplete.
Submitted by: thomas@mathematik.uni-Bremen.de and myself
Diffstat (limited to 'usr.bin/ranlib/touch.c')
-rw-r--r-- | usr.bin/ranlib/touch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/ranlib/touch.c b/usr.bin/ranlib/touch.c index 4cf4b12..0dd9123 100644 --- a/usr.bin/ranlib/touch.c +++ b/usr.bin/ranlib/touch.c @@ -65,6 +65,7 @@ touch() return(1); } settime(afd); + close_archive(afd); return(0); } |