diff --git a/test/unit/core/test_pbuf.c b/test/unit/core/test_pbuf.c index 68aeba04..8ce0e9d3 100644 --- a/test/unit/core/test_pbuf.c +++ b/test/unit/core/test_pbuf.c @@ -222,6 +222,7 @@ START_TEST(test_pbuf_take_at_edge) fail_unless(out[i] == testdata[i], "Bad data at pos %d, was %02X, expected %02X", p->len+i, out[i], testdata[i]); } + pbuf_free(p); } END_TEST @@ -251,6 +252,7 @@ START_TEST(test_pbuf_get_put_at_edge) getdata = pbuf_get_at(p, p->len); fail_unless(*out == getdata, "pbuf_get_at() returned bad data at pos %d, was %02X, expected %02X", p->len, getdata, *out); + pbuf_free(p); } END_TEST