diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-05-10 20:23:25 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-05-10 20:23:25 +0000 |
commit | 8040f7be5fc50e9fb9b8e54e91c89b9a9fb343d8 (patch) | |
tree | 3f711cff5ab8a023879abcfd3c3c0a05431c8a8d | |
parent | ba4e3222839204021e000d34b676712b9aa14b24 (diff) |
properly free suffixes.
OK tobias@
-rw-r--r-- | usr.bin/rcs/rcsutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c index 6f67c362d70..83a9638379c 100644 --- a/usr.bin/rcs/rcsutil.c +++ b/usr.bin/rcs/rcsutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsutil.c,v 1.32 2008/01/04 13:45:24 chl Exp $ */ +/* $OpenBSD: rcsutil.c,v 1.33 2008/05/10 20:23:24 joris Exp $ */ /* * Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -230,6 +230,7 @@ rcs_choosefile(const char *filename, char *out, size_t len) if (strlcpy(out, rcspath, len) >= len) errx(1, "rcs_choosefile; truncation"); + xfree(suffixes); return (fd); } @@ -254,6 +255,7 @@ rcs_choosefile(const char *filename, char *out, size_t len) if (strlcpy(out, fpath, len) >= len) errx(1, "rcs_choosefile: truncation"); + xfree(suffixes); return (fd); } |