remove point checking in str_array_free

This commit is contained in:
c9s 2014-05-22 22:23:47 +08:00
parent 288cdc91dd
commit fe5c2381b5

View file

@ -23,10 +23,8 @@ 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);
} }