aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/container.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 1e1fd985b..34ec1aa5e 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -50,6 +50,7 @@ smartlist_create(void)
void
smartlist_free(smartlist_t *sl)
{
+ tor_assert(sl != NULL);
tor_free(sl->list);
tor_free(sl);
}