diff options
author | 2008-05-10 20:23:24 +0000 | |
---|---|---|
committer | 2008-05-10 20:23:24 +0000 | |
commit | ee8640c59a58b4c37f13ab59df86af2f5a968653 (patch) | |
tree | aa4727437b994d879db491a252e5f7a8c1ea5722 | |
parent | First stab at a bootloader for the Thecus N1200. (diff) | |
download | wireguard-openbsd-ee8640c59a58b4c37f13ab59df86af2f5a968653.tar.xz wireguard-openbsd-ee8640c59a58b4c37f13ab59df86af2f5a968653.zip |
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); } |