X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_regex%2Fos_regex_free_substrings.c;h=56e61fff62a67f391270d823414ae13569fc1ba0;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=b96a58b56fdc88a4b22f4427d7ddbea1d1f14cfe;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/os_regex/os_regex_free_substrings.c b/src/os_regex/os_regex_free_substrings.c index b96a58b..56e61ff 100755 --- a/src/os_regex/os_regex_free_substrings.c +++ b/src/os_regex/os_regex_free_substrings.c @@ -24,11 +24,10 @@ */ void OSRegex_FreeSubStrings(OSRegex *reg) { - int i = 0; - /* Freeing the sub strings */ if(reg->sub_strings) { + int i = 0; while(reg->sub_strings[i]) { free(reg->sub_strings[i]);