mirror of
https://github.com/openbsd/src.git
synced 2024-12-21 23:18:00 -08:00
avoid potential use-after-free
found by smatch, ok tb@
This commit is contained in:
parent
1a5078e916
commit
6540267578
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rcs.c,v 1.321 2022/12/26 19:16:00 jmc Exp $ */
|
||||
/* $OpenBSD: rcs.c,v 1.322 2024/05/30 10:25:58 jsg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
|
||||
* All rights reserved.
|
||||
@ -2581,6 +2581,7 @@ rcs_translate_tag(const char *revstr, RCSFILE *rfp)
|
||||
follow = 0;
|
||||
|
||||
free(brev);
|
||||
brev = NULL;
|
||||
}
|
||||
|
||||
if (cvs_specified_date != -1)
|
||||
|
Loading…
Reference in New Issue
Block a user