diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2010-07-23 23:59:33 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2010-07-23 23:59:33 +0000 |
commit | 873d0fb334f9610ff8d37e16bdc8711f44cb9788 (patch) | |
tree | 356e82cec291d8a053667dea860fb818e03ed6db /usr.bin/rcs | |
parent | 83b3de9c48a3e07427ed4cb8b904ff575e603ab0 (diff) |
Plug mem leak.
OK nicm
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/ci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index f53697e95cd..faa70c9ddec 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.207 2010/07/23 21:46:05 ray Exp $ */ +/* $OpenBSD: ci.c,v 1.208 2010/07/23 23:59:32 ray Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -924,6 +924,7 @@ checkin_keywordscan(BUF *data, RCSNUM **rev, time_t *date, char **author, /* XXX - Not binary safe. */ buf_putc(buf, '\0'); checkin_parsekeyword(buf_get(buf), rev, date, author, state); + buf_free(buf); loopend:; } if (kwstr == NULL) |