diff options
author | 2009-12-11 17:25:43 +0000 | |
---|---|---|
committer | 2009-12-11 17:25:43 +0000 | |
commit | 441ae911bdfdb4f2768faa33dadbfab6b3681cb6 (patch) | |
tree | 4b9f8b4d5bb5aeb47650121d32651b23b88d6148 | |
parent | By popular demand and peer pressure, check-in work in progress work to support (diff) | |
download | wireguard-openbsd-441ae911bdfdb4f2768faa33dadbfab6b3681cb6.tar.xz wireguard-openbsd-441ae911bdfdb4f2768faa33dadbfab6b3681cb6.zip |
clean up the realloc code to make a parfait false positive go away.
parfait still does not completely understand how realloc() behaves
(or %, ?:, >>, or << and its terminal function tracking remains weak)
-rw-r--r-- | lib/libkeynote/keynote.l | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libkeynote/keynote.l b/lib/libkeynote/keynote.l index 19964c59aec..46e3291421f 100644 --- a/lib/libkeynote/keynote.l +++ b/lib/libkeynote/keynote.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: keynote.l,v 1.17 2004/06/29 11:35:56 msf Exp $ */ +/* $OpenBSD: keynote.l,v 1.18 2009/12/11 17:25:43 deraadt Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -287,11 +287,9 @@ keynote_lex_add(void *s, int type) } if (p != keynote_lex_list) - { - free(keynote_lex_list); - keynote_lex_list = p; - } + free(keynote_lex_list); + keynote_lex_list = p; keynote_lex_list[i].lex_s = s; keynote_lex_list[i++].lex_type = type; keynote_lex_counter++; |