瀏覽代碼

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);
 }