Refactor poison_dir allocation and free in test_single_onion_poisoning
commitc100c5c69b4fd3b464b2395263e77cc6e1051ef3
authorteor <teor2345@gmail.com>
Fri, 2 Dec 2016 19:25:46 +0000 (3 06:25 +1100)
committerteor <teor2345@gmail.com>
Fri, 2 Dec 2016 19:25:46 +0000 (3 06:25 +1100)
tree3febcbf1f6a8b68c9ab473a1f9120159b6ed2ce1
parent907cd8a0cfb6da08450902ebb2f21db3cd65e7f7
Refactor poison_dir allocation and free in test_single_onion_poisoning

This pattern is much less error-prone when future changes are made.
src/test/test_hs.c