tests/zoap: fix net_pkt leak in test_observer_client()

Signed-off-by: Michael Scott <michael.scott@linaro.org>
This commit is contained in:
Michael Scott 2017-05-18 13:11:37 -07:00 committed by Jukka Rissanen
commit 5ace805097

View file

@ -903,7 +903,7 @@ static int test_observer_client(void)
done:
net_pkt_unref(pkt);
if (rsp_pkt) {
net_pkt_unref(pkt);
net_pkt_unref(rsp_pkt);
}
TC_END_RESULT(result);