mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-23 21:14:18 +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],
|
||||
"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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user