소스 검색

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