Potential memory leak in greybus/svc.c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Johan Hovold <johan@xxxxxxxxxx>, Alex Elder <elder@xxxxxxxxxx>, greybus-dev@xxxxxxxxxxxxxxxx
- Subject: Potential memory leak in greybus/svc.c
- From: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>
- Date: Sat, 14 Dec 2019 17:44:05 -0600
Hello,
It seems to me there is a memory leak in the implementation of gb_svc_create().
In the error handling path (labeled as err_put_device) the code
correctly puts svc->dev, but I am suspicious that svc->wq is leaking.
The allocated svc->wq needs a release via destroy_workqueue() in the
error handling path. Am I missing something?
Thank you,
--
Navid.
_______________________________________________
greybus-dev mailing list
greybus-dev@xxxxxxxxxxxxxxxx
https://lists.linaro.org/mailman/listinfo/greybus-dev
[Index of Archives]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]
[Asterisk Books]