Explorar el Código

turn future seg faults into asserts

svn:r6970
Roger Dingledine hace 19 años
padre
commit
e64825126b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);
 }