mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
test_pbuf: free pbufs at the end of tests
This commit is contained in:
parent
ca9eae26e1
commit
5d10e1b6c3
@ -222,6 +222,7 @@ START_TEST(test_pbuf_take_at_edge)
|
|||||||
fail_unless(out[i] == testdata[i],
|
fail_unless(out[i] == testdata[i],
|
||||||
"Bad data at pos %d, was %02X, expected %02X", p->len+i, 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
|
END_TEST
|
||||||
|
|
||||||
@ -251,6 +252,7 @@ START_TEST(test_pbuf_get_put_at_edge)
|
|||||||
getdata = pbuf_get_at(p, p->len);
|
getdata = pbuf_get_at(p, p->len);
|
||||||
fail_unless(*out == getdata,
|
fail_unless(*out == getdata,
|
||||||
"pbuf_get_at() returned bad data at pos %d, was %02X, expected %02X", p->len, getdata, *out);
|
"pbuf_get_at() returned bad data at pos %d, was %02X, expected %02X", p->len, getdata, *out);
|
||||||
|
pbuf_free(p);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user