]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
turn future seg faults into asserts
authorRoger Dingledine <arma@torproject.org>
Thu, 3 Aug 2006 04:23:45 +0000 (04:23 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 3 Aug 2006 04:23:45 +0000 (04:23 +0000)
svn:r6970

src/common/container.c

index 1e1fd985b16352307fd16fd543442417fd5368ee..34ec1aa5e89202ca1452ee345e7a97e89b5a1d49 100644 (file)
@@ -50,6 +50,7 @@ smartlist_create(void)
 void
 smartlist_free(smartlist_t *sl)
 {
+  tor_assert(sl != NULL);
   tor_free(sl->list);
   tor_free(sl);
 }