diff options
author | 2004-07-23 23:15:18 +0000 | |
---|---|---|
committer | 2004-07-23 23:15:18 +0000 | |
commit | 272d0faba52c8bbef154f3aec9362f847dd1ba26 (patch) | |
tree | fc4e16edd25485d039c17ccf21b4b777d5db243f | |
parent | Sync (diff) | |
download | wireguard-openbsd-272d0faba52c8bbef154f3aec9362f847dd1ba26.tar.xz wireguard-openbsd-272d0faba52c8bbef154f3aec9362f847dd1ba26.zip |
fix use after free due to freeing incorrect item.
looks right to me millert@
-rw-r--r-- | usr.bin/gprof/arcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/gprof/arcs.c b/usr.bin/gprof/arcs.c index 02d3713bcef..c31101b060f 100644 --- a/usr.bin/gprof/arcs.c +++ b/usr.bin/gprof/arcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcs.c,v 1.8 2004/07/20 08:46:23 art Exp $ */ +/* $OpenBSD: arcs.c,v 1.9 2004/07/23 23:15:18 marc Exp $ */ /* $NetBSD: arcs.c,v 1.6 1995/04/19 07:15:52 cgd Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)arcs.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: arcs.c,v 1.8 2004/07/20 08:46:23 art Exp $"; +static char rcsid[] = "$OpenBSD: arcs.c,v 1.9 2004/07/23 23:15:18 marc Exp $"; #endif #endif /* not lint */ @@ -745,8 +745,8 @@ compresslist() (*arcpp) -> arc_cyclecnt--; cyclecnt--; *prev = clp -> next; - clp = clp -> next; free( clp ); + clp = *prev; } } |