diff options
author | 2011-06-28 00:30:17 +0200 | |
---|---|---|
committer | 2011-07-22 09:37:46 +0000 | |
commit | a57b5d36453cc9335f75ae191ffd682a250d08ba (patch) | |
tree | 4879b45aec4865ee6c7df64cf7a71b56f75e9238 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | loopback: Remove duplicate scsi/scsi_tcq.h include (diff) | |
download | linux-dev-a57b5d36453cc9335f75ae191ffd682a250d08ba.tar.xz linux-dev-a57b5d36453cc9335f75ae191ffd682a250d08ba.zip |
loopback: Fix memory leak in tcm_loop_make_scsi_hba()
There is a memory leak in tcm_loop_make_scsi_hba().
If all the strstr() calls return NULL and we end up at return ERR_PTR(-EINVAL);
then we'll be leaking the memory previously allocated to tl_hba as
that variable goes out of scope.
This patch should fix the leak.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions