remove point checking in str_array_free
This commit is contained in:
parent
288cdc91dd
commit
fe5c2381b5
1 changed files with 1 additions and 3 deletions
|
@ -23,9 +23,7 @@ str_array * str_array_create(int cap) {
|
||||||
void str_array_free(str_array *l) {
|
void str_array_free(str_array *l) {
|
||||||
for ( int i = 0; i < l->len ; i++ ) {
|
for ( int i = 0; i < l->len ; i++ ) {
|
||||||
char * t = l->tokens[ i ];
|
char * t = l->tokens[ i ];
|
||||||
if (t) {
|
zfree(t);
|
||||||
zfree(t);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
zfree(l);
|
zfree(l);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue