]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix BUG warning with stack trace from config/parse_port_config__listenaddress
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Sep 2016 17:30:50 +0000 (13:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Sep 2016 17:30:50 +0000 (13:30 -0400)
src/test/test_config.c

index 90ea4da87d90643afaea017527d6647c9c340855..1e6d2adf57d181cf8e8a4ecaa78fbc98ea04c871 100644 (file)
@@ -3832,6 +3832,8 @@ test_config_parse_port_config__listenaddress(void *data)
   tt_int_op(ret, OP_EQ, 0);
 
   // Test warning nonlocal other
+  SMARTLIST_FOREACH(slout,port_cfg_t *,pf,port_cfg_free(pf));
+  smartlist_clear(slout);
   ret = parse_port_config(slout, config_port2, config_listen_address, "DNS",
                           0, NULL, 0, CL_PORT_WARN_NONLOCAL);
   tt_int_op(ret, OP_EQ, 0);