check match_entry->vars

This commit is contained in:
c9s 2014-06-01 01:20:28 +08:00
parent b61d5a78ae
commit 7d9b6c8889

View file

@ -27,6 +27,8 @@ match_entry * match_entry_createl(const char * path, int path_len) {
}
void match_entry_free(match_entry * entry) {
str_array_free(entry->vars);
if (entry->vars) {
str_array_free(entry->vars);
}
zfree(entry);
}