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=3f728675941dc69d4e544d3a880a56240a6e394a;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 old mode 100755 new mode 100644 index e2cfcd2..0c66bfc --- a/src/os_regex/os_regex_free_substrings.c +++ b/src/os_regex/os_regex_free_substrings.c @@ -1,15 +1,12 @@ -/* $OSSEC, os_regex_free_substrings.c, v0.1, 2006/01/02, Daniel B. Cid$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * 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 */ - #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 */