Added missing cfg argument

This fixes a segfault in `ht_destroy`