mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
turn future seg faults into asserts
svn:r6970
This commit is contained in:
parent
3152d44c3a
commit
e64825126b
@ -50,6 +50,7 @@ smartlist_create(void)
|
|||||||
void
|
void
|
||||||
smartlist_free(smartlist_t *sl)
|
smartlist_free(smartlist_t *sl)
|
||||||
{
|
{
|
||||||
|
tor_assert(sl != NULL);
|
||||||
tor_free(sl->list);
|
tor_free(sl->list);
|
||||||
tor_free(sl);
|
tor_free(sl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user