X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fos_regex%2Fos_regex_free_substrings.c;h=0c66bfcc35e696ef2f884083edc8bafe91d2e629;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=56e61fff62a67f391270d823414ae13569fc1ba0;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b;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 56e61ff..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,18 +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) { - /* Freeing the sub strings */ - if(reg->sub_strings) - { + /* Free the sub strings */ + if (reg->sub_strings) { int i = 0; - while(reg->sub_strings[i]) - { + while (reg->sub_strings[i]) { free(reg->sub_strings[i]); reg->sub_strings[i] = NULL; i++; @@ -38,5 +30,3 @@ void OSRegex_FreeSubStrings(OSRegex *reg) return; } - -/* EOF */