aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}