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
16 /* Release all the memory created to store the sub strings */
17 void OSPcre2_FreeSubStrings(OSPcre2 *reg) {
20 /* Free the sub strings */
21 if (reg->sub_strings) {
22 while (reg->sub_strings[i]) {
23 free(reg->sub_strings[i]);
24 reg->sub_strings[i] = NULL;