commit | e3b09e4bf6455caccc7ef215256e4f0065fbca7d | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Mon Jan 16 21:28:37 2012 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Feb 09 09:20:06 2012 -0800 |
tree | e78e6e57ecdcd5b3b99773dada72bb0e79d0ab74 | |
parent | 4e1efd6e853977a134ff262230ccb4b69319d926 [diff] |
staging, vt6656/wpactl.c: Fix mem leak in wpa_ioctl() If we hit the default case in the switch statement in wpa_ioctl() we'll leak the memory allocated to 'param' when the variable goes out of scope without having been assigned to anything. This patch fixes the leak by kfree()'ing the memory before we return from the function. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>