diff --git a/drivers/entropy/entropy_bt_hci.c b/drivers/entropy/entropy_bt_hci.c index 43430b35c03..d2a52cceb8f 100644 --- a/drivers/entropy/entropy_bt_hci.c +++ b/drivers/entropy/entropy_bt_hci.c @@ -39,6 +39,8 @@ static int entropy_bt_get_entropy(const struct device *dev, /* Copy random data into buffer */ rp = (void *)rsp->data; memcpy(buffer, rp->rand, req); + + net_buf_unref(rsp); buffer += req; length -= req; }