2015-07-27 08:20:37

by David Binderman

[permalink] [raw]
Subject: linux-4.2-rc4/drivers/staging/wilc1000/linux_mon.c:264: memory leak ?

Hello there,

[linux-4.2-rc4/drivers/staging/wilc1000/linux_mon.c:264]: (error) Memory leak: mgmt_tx

Source code is

??? mgmt_tx->buff = kmalloc(len, GFP_ATOMIC);
??? if (mgmt_tx->buff == NULL) {
??????? PRINT_ER("Failed to allocate memory for mgmt_tx buff\n");
??????? return WILC_FAIL;

??? }

Suggest add missing call to kfree.


Regards

David Binderman