check match_entry->vars
This commit is contained in:
parent
b61d5a78ae
commit
7d9b6c8889
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,8 @@ match_entry * match_entry_createl(const char * path, int path_len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void match_entry_free(match_entry * entry) {
|
void match_entry_free(match_entry * entry) {
|
||||||
str_array_free(entry->vars);
|
if (entry->vars) {
|
||||||
|
str_array_free(entry->vars);
|
||||||
|
}
|
||||||
zfree(entry);
|
zfree(entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue