Browse Source

turn future seg faults into asserts

svn:r6970
Roger Dingledine 18 years ago
parent
commit
e64825126b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common/container.c

+ 1 - 0
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);
 }