Преглед изворни кода

turn future seg faults into asserts

svn:r6970
Roger Dingledine пре 19 година
родитељ
комит
e64825126b
1 измењених фајлова са 1 додато и 0 уклоњено
  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);
 }