remove unnecessary pointer check
This commit is contained in:
parent
fe5c2381b5
commit
62bb4e5460
1 changed files with 3 additions and 7 deletions
|
@ -246,11 +246,9 @@ match_entry * match_entry_createl(char * path, int path_len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void match_entry_free(match_entry * entry) {
|
void match_entry_free(match_entry * entry) {
|
||||||
if (entry) {
|
|
||||||
str_array_free(entry->vars);
|
str_array_free(entry->vars);
|
||||||
zfree(entry);
|
zfree(entry);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -396,10 +394,8 @@ route * r3_route_create(char * path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void r3_route_free(route * route) {
|
void r3_route_free(route * route) {
|
||||||
if (route) {
|
|
||||||
zfree(route);
|
zfree(route);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
route * r3_route_createl(char * path, int path_len) {
|
route * r3_route_createl(char * path, int path_len) {
|
||||||
route * info = zmalloc(sizeof(route));
|
route * info = zmalloc(sizeof(route));
|
||||||
|
|
Loading…
Reference in a new issue