From e64825126be156bae394f9822dac9b91a3f23970 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 3 Aug 2006 04:23:45 +0000 Subject: turn future seg faults into asserts svn:r6970 --- src/common/container.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3