Re: [PATCH] staging: mt29f_spinand: fix memory leak while programming pages

From: Dan Carpenter
Date: Wed Aug 01 2018 - 07:45:33 EST


devm_ resources are freed automatically when the device is removed.
The name devm_ stands for "device" and "managed".

regards,
dan carpenter