summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-11 17:25:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-11 17:25:44 +0000
commitc2d927686ecb58bfdbcace1ac2c2c903955eff9d (patch)
tree423151c3ff5cf88215c1a421764200b63c223487 /lib
parentc19a591c36d62151318b14bd8e42f54b39815a80 (diff)
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)
Diffstat (limited to 'lib')
-rw-r--r--lib/libkeynote/keynote.l8
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++;