diff options
Diffstat (limited to 'usr.bin/rcs/rcsutil.c')
-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); } |