projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
os_regex
/
os_regex_free_substrings.c
diff --git
a/src/os_regex/os_regex_free_substrings.c
b/src/os_regex/os_regex_free_substrings.c
index
e2cfcd2
..
56e61ff
100755
(executable)
--- a/
src/os_regex/os_regex_free_substrings.c
+++ b/
src/os_regex/os_regex_free_substrings.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
*/
@@
-24,11
+24,10
@@
*/
void OSRegex_FreeSubStrings(OSRegex *reg)
{
*/
void OSRegex_FreeSubStrings(OSRegex *reg)
{
- int i = 0;
-
/* Freeing the sub strings */
if(reg->sub_strings)
{
/* Freeing the sub strings */
if(reg->sub_strings)
{
+ int i = 0;
while(reg->sub_strings[i])
{
free(reg->sub_strings[i]);
while(reg->sub_strings[i])
{
free(reg->sub_strings[i]);