*
* 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
*/
*/
void OSRegex_FreeSubStrings(OSRegex *reg)
{
- int i = 0;
-
/* Freeing the sub strings */
if(reg->sub_strings)
{
+ int i = 0;
while(reg->sub_strings[i])
{
free(reg->sub_strings[i]);