projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dodan override za lintian
[ossec-hids.git]
/
src
/
os_regex
/
os_match_free_pattern.c
diff --git
a/src/os_regex/os_match_free_pattern.c
b/src/os_regex/os_match_free_pattern.c
index
095f8c9
..
9ed4ca4
100755
(executable)
--- a/
src/os_regex/os_match_free_pattern.c
+++ b/
src/os_regex/os_match_free_pattern.c
@@
-5,7
+5,7
@@
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
* Foundation
*/
* Foundation
*/
@@
-33,18
+33,19
@@
void OSMatch_FreePattern(OSMatch *reg)
{
if(*pattern)
free(*pattern);
{
if(*pattern)
free(*pattern);
- pattern++;
+ pattern++;
}
free(reg->patterns);
}
free(reg->patterns);
- free(reg->size);
- free(reg->match_fp);
-
reg->patterns = NULL;
reg->patterns = NULL;
- reg->size = NULL;
- reg->match_fp = NULL;
}
}
+ free(reg->size);
+ free(reg->match_fp);
+
+ reg->size = NULL;
+ reg->match_fp = NULL;
+
return;
}
return;
}