X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_regex%2Fos_regex_free_pattern.c;h=6ee085e50d6cd4996363dba19c7a2fb6384c858c;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hp=2cfa00e034566f0bd318697634e43fe79c723d29;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/os_regex/os_regex_free_pattern.c b/src/os_regex/os_regex_free_pattern.c index 2cfa00e..6ee085e 100755 --- a/src/os_regex/os_regex_free_pattern.c +++ b/src/os_regex/os_regex_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 - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -35,7 +35,7 @@ void OSRegex_FreePattern(OSRegex *reg) { if(*pattern) free(*pattern); - pattern++; + pattern++; } free(reg->patterns); @@ -74,7 +74,7 @@ void OSRegex_FreePattern(OSRegex *reg) /* Freeing the sub strings */ if(reg->sub_strings) { - OSRegex_FreeSubStrings(reg); + OSRegex_FreeSubStrings(reg); free(reg->sub_strings); reg->sub_strings = NULL; }