Make rend_service_free available to the unit tests
commitb494ccc3c91423c4280c1fc003b5117d9aae54c0
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 14 Jul 2016 04:07:48 +0000 (14 14:07 +1000)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Sep 2016 14:08:06 +0000 (13 10:08 -0400)
tree52aeaa064d51ca6c526eaa84712d9e8c50581498
parent16386a8cd15997acebdc1bd4ee047274b5c2730a
Make rend_service_free available to the unit tests

Also check that the port list exists before freeing it.

Patch by asn.
src/or/rendservice.c
src/or/rendservice.h