aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-08-03 04:23:45 +0000
committerRoger Dingledine <arma@torproject.org>2006-08-03 04:23:45 +0000
commite64825126be156bae394f9822dac9b91a3f23970 (patch)
tree3785bcc852e02f46c4574cf1bbc1bc45a6eaed4c
parent3152d44c3a56bdf85cab6d706f2f87a4894951a3 (diff)
downloadtor-e64825126be156bae394f9822dac9b91a3f23970.tar
tor-e64825126be156bae394f9822dac9b91a3f23970.tar.gz
turn future seg faults into asserts
svn:r6970
-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);
}