From 7ab7533a2c29361e16502acc4facf58b49a1eb4e Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Fri, 24 Jul 2015 17:03:25 +0300 Subject: [PATCH] [FIX] memory leak in wsp Change-Id: Ia5d3a3e4b1831b4aa12d9a665f2adcf70a489d48 Signed-off-by: Vyacheslav Cherkashin --- wsp/wsp_res.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wsp/wsp_res.c b/wsp/wsp_res.c index 74ad258..88eae97 100644 --- a/wsp/wsp_res.c +++ b/wsp/wsp_res.c @@ -104,6 +104,8 @@ static void wsp_tdata_destroy(struct wsp_tdata *d) list_for_each_entry_safe(res, n, &d->res_list, list) wsp_tdata_del_res(res); spin_unlock(&d->lock); + + kfree(d); } static struct wsp_res *wsp_tdata_last_res(struct wsp_tdata *d) -- 2.7.4