Merge "net: qrtr: smd: kfree svc_arr after use"

This commit is contained in:
qctecmdr 2023-12-26 03:12:21 -08:00 committed by Gerrit - the friendly Code Review server
commit f758f24d4d

View File

@ -93,6 +93,7 @@ static int qcom_smd_qrtr_probe(struct rpmsg_device *rpdev)
svc_arr, size); svc_arr, size);
} }
rc = qrtr_endpoint_register(&qdev->ep, net_id, rt, svc_arr); rc = qrtr_endpoint_register(&qdev->ep, net_id, rt, svc_arr);
kfree(svc_arr);
if (rc) if (rc)
return rc; return rc;