X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_regex%2Fos_regex_free_substrings.c;h=0c66bfcc35e696ef2f884083edc8bafe91d2e629;hb=refs%2Fheads%2Fmaster;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 old mode 100755 new mode 100644 index b96a58b..0c66bfc --- a/src/os_regex/os_regex_free_substrings.c +++ b/src/os_regex/os_regex_free_substrings.c @@ -1,5 +1,3 @@ -/* $OSSEC, os_regex_free_substrings.c, v0.1, 2006/01/02, Daniel B. Cid$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * @@ -9,7 +7,6 @@ * Foundation */ - #include #include #include @@ -18,19 +15,13 @@ #include "os_regex_internal.h" -/** int OSRegex_FreeSubStrings(OSRegex *reg) v0.1 - * Release all the memory created to store the sub strings. - * Returns void. - */ +/* Release all the memory created to store the sub strings */ void OSRegex_FreeSubStrings(OSRegex *reg) { - int i = 0; - - /* Freeing the sub strings */ - if(reg->sub_strings) - { - while(reg->sub_strings[i]) - { + /* Free the sub strings */ + if (reg->sub_strings) { + int i = 0; + while (reg->sub_strings[i]) { free(reg->sub_strings[i]); reg->sub_strings[i] = NULL; i++; @@ -39,5 +30,3 @@ void OSRegex_FreeSubStrings(OSRegex *reg) return; } - -/* EOF */