artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
990ca81
)
Plug memleak in rcs_translate_tag() that was causing havoc on large repos.
author
joris
<joris@openbsd.org>
Wed, 31 May 2017 16:31:55 +0000
(16:31 +0000)
committer
joris
<joris@openbsd.org>
Wed, 31 May 2017 16:31:55 +0000
(16:31 +0000)
usr.bin/cvs/rcs.c
patch
|
blob
|
history
diff --git
a/usr.bin/cvs/rcs.c
b/usr.bin/cvs/rcs.c
index
d2b68ee
..
3efe66a
100644
(file)
--- a/
usr.bin/cvs/rcs.c
+++ b/
usr.bin/cvs/rcs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rcs.c,v 1.31
6 2016/10/15 22:20:17 millert Exp $
*/
+/* $OpenBSD: rcs.c,v 1.31
7 2017/05/31 16:31:55 joris Exp $
*/
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@
-2589,6
+2589,8
@@
rcs_translate_tag(const char *revstr, RCSFILE *rfp)
cdate = cvs_directory_date;
if (cdate == -1) {
+ free(frev);
+
/* XXX */
if (rev->rn_len < 4 || !follow) {
return (rev);