diff options
| author | Ben Foster | 2017-10-25 23:53:07 +0100 |
|---|---|---|
| committer | Ben Foster | 2017-10-26 21:14:00 +0100 |
| commit | 1eb51a18ec06b3c8add77d876af0f5a599279c67 (patch) | |
| tree | abd9a74672c5111edf6ee6aea0f9c0dd843ca580 /src/sp_config.c | |
| parent | 59b3db273e6e628afb188681e178ea53d571b03d (diff) | |
Free additionally allocated `sp_list` instances
References #43.
Diffstat (limited to 'src/sp_config.c')
| -rw-r--r-- | src/sp_config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp_config.c b/src/sp_config.c index c41b8f7..13002cc 100644 --- a/src/sp_config.c +++ b/src/sp_config.c | |||
| @@ -182,3 +182,13 @@ int sp_parse_config(const char *conf_file) { | |||
| 182 | fclose(fd); | 182 | fclose(fd); |
| 183 | return SUCCESS; | 183 | return SUCCESS; |
| 184 | } | 184 | } |
| 185 | |||
| 186 | void sp_disabled_function_list_free(sp_node_t* list) { | ||
| 187 | sp_node_t* cursor = list; | ||
| 188 | while(cursor) { | ||
| 189 | sp_disabled_function* df = cursor->data; | ||
| 190 | if (df && df->functions_list) | ||
| 191 | sp_list_free(df->functions_list); | ||
| 192 | cursor = cursor->next; | ||
| 193 | } | ||
| 194 | } | ||
