diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 02:55:00 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 02:55:00 +0000 |
commit | cfbaf0820e438c385c5909d4dc504139ae2ae6db (patch) | |
tree | ea93ade1d7842e1db0837d2be2a4807f028c4299 /usr.bin | |
parent | f92f84a9f10cac8be8b755b3a6bc53d2cc6746ad (diff) |
- don't forget to free data in rcs_expand_keywords()
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c index 5433df9f4d8..4a2a81c4974 100644 --- a/usr.bin/rcs/rcs.c +++ b/usr.bin/rcs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.13 2006/06/04 02:54:07 niallo Exp $ */ +/* $OpenBSD: rcs.c,v 1.14 2006/06/04 02:54:59 niallo Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -2778,6 +2778,7 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, BUF *bp, int mode) } bp = rcs_buf_alloc(len - 1, BUF_AUTOEXT); rcs_buf_set(bp, data, len - 1, 0); + xfree(data); return (bp); } |