diff options
author | Russ Cox <rsc@swtch.com> | 2007-08-22 10:58:30 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2007-08-22 10:58:30 -0400 |
commit | acecbb161981dcbe1f1e356c3ad586741a2240b9 (patch) | |
tree | dab2c0b18703421abbe2090f1733ec715fa479b3 /src/cmd | |
parent | 3c7f141d1c5da39682c2524c971531e13854e4b9 (diff) | |
download | plan9port-acecbb161981dcbe1f1e356c3ad586741a2240b9.tar.gz plan9port-acecbb161981dcbe1f1e356c3ad586741a2240b9.tar.bz2 plan9port-acecbb161981dcbe1f1e356c3ad586741a2240b9.zip |
acme: fix memory leak in warning (Michael Teichgräber)
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/acme/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/acme/util.c b/src/cmd/acme/util.c index 432950e9..fd4d97ab 100644 --- a/src/cmd/acme/util.c +++ b/src/cmd/acme/util.c @@ -266,6 +266,7 @@ warning(Mntdir *md, char *s, ...) if(r == nil) error("runevsmprint failed"); addwarningtext(md, r, runestrlen(r)); + free(r); } int |