diff options
author | 2012-07-31 11:39:37 +0000 | |
---|---|---|
committer | 2012-08-02 00:19:17 -0700 | |
commit | 8b6d5c09bc0c49aea041486d77c2f67e98ae0bc3 (patch) | |
tree | 41f7f5a284019ff2c4f2cc31877dd947d27796f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Fix unexpected SA hard expiration after changing date (diff) | |
download | linux-dev-8b6d5c09bc0c49aea041486d77c2f67e98ae0bc3.tar.xz linux-dev-8b6d5c09bc0c49aea041486d77c2f67e98ae0bc3.zip |
bnx2x: fix mem leak when command is unknown
In bnx2x_mcast_enqueue_cmd() we'll leak the memory allocated to
'new_cmd' if we hit the deafault case of the 'switch (cmd)'.
Add a 'kfree(new_cmd)' to that case to avoid the leak.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions