diff options
author | Joern Engel <joern@logfs.org> | 2014-09-02 17:49:56 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-09-17 14:16:54 -0700 |
commit | 8d2135592d2ab5c8d7764a4f534afac64e563691 (patch) | |
tree | 77607882ed9f636491a8b9617849c660c11b8c9a /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | fdc84d11a278d468052afc8e17523545fafe6c5f (diff) |
target: Fix possible memory leak in aptpl_metadata parsing
Each case of match_strdup could leak memory if the same argument was
present before. I am not too concerned, as it would require a
non-sensical combination like "target_lun=foo target_lun=bar", done
with root privileges and even then leak just a few bytes per instance.
But arg_p is different, as it will always leak memory. Let's plug that
one. And while at it, replace some &args[0] with args.
Found by coverity.
Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions