diff options
author | Russ Cox <rsc@swtch.com> | 2017-10-14 19:50:53 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2017-10-14 19:51:10 -0400 |
commit | ff9d331db494d323bb89a8fe67b96d90b7e60030 (patch) | |
tree | b11414648404f21efa19a40ebdc4deb1d406ef74 /src/cmd/acme | |
parent | e4d6099eff8d04d96fd4937bc97631abc5218fcd (diff) | |
download | plan9port-ff9d331db494d323bb89a8fe67b96d90b7e60030.tar.gz plan9port-ff9d331db494d323bb89a8fe67b96d90b7e60030.tar.bz2 plan9port-ff9d331db494d323bb89a8fe67b96d90b7e60030.zip |
acme: free buf in checksha1
Thanks to Lorenzo Beretta for noticing.
Diffstat (limited to 'src/cmd/acme')
-rw-r--r-- | src/cmd/acme/exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c index 75737d80..1df01c71 100644 --- a/src/cmd/acme/exec.c +++ b/src/cmd/acme/exec.c @@ -651,6 +651,7 @@ checksha1(char *name, File *f, Dir *d) buf = emalloc(8192); while((n = read(fd, buf, 8192)) > 0) sha1(buf, n, nil, h); + free(buf); close(fd); sha1(nil, 0, out, h); if(memcmp(out, f->sha1, sizeof out) == 0) { |