assert free
This commit is contained in:
parent
188a687150
commit
4f93a530e1
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ str_array * str_array_create(int cap) {
|
|||
}
|
||||
|
||||
void str_array_free(str_array *l) {
|
||||
assert(l);
|
||||
for ( int i = 0; i < l->len ; i++ ) {
|
||||
if (l->tokens[ i ]) {
|
||||
zfree(l->tokens[i]);
|
||||
|
|
Loading…
Reference in a new issue