]> sourceware.org Git - lvm2.git/commit
filters: fix incorrect filter indexing in composite filter array
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 11 Sep 2014 07:30:03 +0000 (09:30 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 11 Sep 2014 07:30:03 +0000 (09:30 +0200)
commit80ac8f37d6ac5f8c5228678d4ee07187b5d4db7b
treef2b56b5782c7f8b52bfd5801a1a2bf700397b3c2
parent4748f4a9e4516a8c9226ce61b5a3ca41f0852ffc
filters: fix incorrect filter indexing in composite filter array

Caused by recent changes - a7be3b12dfe7388d1648595e6cc4c7a1379bb8a7.
If global filter was not defined, then part of the code
creating composite filter (the cmd->lvmetad_filter) incorrectly
increased index value even if this global filter was not created
as part of the composite filter. This caused a gap with "NULL"
value in the composite filter array which ended up with the rest
of the filters after the gap to be ignored and also it caused a mem
leak when destroying the composite filter.
lib/commands/toolcontext.c
This page took 0.040318 seconds and 5 git commands to generate.