1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
15 #include "os_regex_internal.h"
18 /* Release all the memory created to store the sub strings */
19 void OSRegex_FreeSubStrings(OSRegex *reg)
21 /* Free the sub strings */
22 if (reg->sub_strings) {
24 while (reg->sub_strings[i]) {
25 free(reg->sub_strings[i]);
26 reg->sub_strings[i] = NULL;