turn future seg faults into asserts

svn:r6970
This commit is contained in:
Roger Dingledine 2006-08-03 04:23:45 +00:00
parent 3152d44c3a
commit e64825126b

View File

@ -50,6 +50,7 @@ smartlist_create(void)
void
smartlist_free(smartlist_t *sl)
{
tor_assert(sl != NULL);
tor_free(sl->list);
tor_free(sl);
}