X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_regex%2Fos_regex_free_pattern.c;h=6ee085e50d6cd4996363dba19c7a2fb6384c858c;hp=305dde39c7d1c3dc0d4cce7f7c07e2adff9e61ce;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/os_regex/os_regex_free_pattern.c b/src/os_regex/os_regex_free_pattern.c index 305dde3..6ee085e 100755 --- a/src/os_regex/os_regex_free_pattern.c +++ b/src/os_regex/os_regex_free_pattern.c @@ -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; }