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,10 +23,8 @@ str_array * str_array_create(int cap) {
|
|||
void str_array_free(str_array *l) {
|
||||
for ( int i = 0; i < l->len ; i++ ) {
|
||||
char * t = l->tokens[ i ];
|
||||
if (t) {
|
||||
zfree(t);
|
||||
}
|
||||
}
|
||||
zfree(l);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue