*
* 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
*/
{
if(*pattern)
free(*pattern);
- pattern++;
+ pattern++;
}
free(reg->patterns);
- free(reg->size);
- free(reg->match_fp);
-
reg->patterns = NULL;
- reg->size = NULL;
- reg->match_fp = NULL;
}
+ free(reg->size);
+ free(reg->match_fp);
+
+ reg->size = NULL;
+ reg->match_fp = NULL;
+
return;
}