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=927951d1c1ad45ba9e7325f07d996154a91c911b;hp=e2cfcd2aba31df42026fbad3fb6e9a0ea84724d3;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;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 e2cfcd2..56e61ff 100755 --- 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 - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -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]);