1 /* $OSSEC, os_match_free_pattern.c, v0.1, 2006/04/18, Daniel B. Cid$ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 2) as published by the FSF - Free Software
18 #include "os_regex_internal.h"
21 /** int OSMatch_FreePattern(OSMatch *reg) v0.1
22 * Release all the memory created by the compilation/executation
26 void OSMatch_FreePattern(OSMatch *reg)
28 /* Freeing the patterns */
31 char **pattern = reg->patterns;