1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha d03b1779b4 coverity: fix possible resource leak in _print_historical_lv function
The code in _print_historical_lv function works with temporary
"descendants_buffer" that is allocated and freed within this
function.

When printing text out, we used "outf" macro which called
"out_text" fn and it checked return value and if failed,
the macro called "return_0" automatically. But since we
use the temporary buffer, if any of the out_text calls
fails, we need to deallocate this buffer properly - that's
the "goto_out", otherwise we'll be leaking memory.

So add new "outfgo" helper macro which does the same as "outf",
but it calls "goto_out" instead of "return_0" so we can jump
to a cleanup hook at the end.
2016-03-07 10:43:50 +01:00
..
activate cleanup: use lv_is_partial 2016-03-03 10:17:03 +01:00
cache cleanup: drop unneeded test 2016-02-25 23:30:25 +01:00
cache_segtype metadata: add support for interconnection of thin pool LV segment with indirect origin 2016-03-03 13:46:40 +01:00
commands cmd: add 'nohistory' option and wire it up in cmd_context 2016-03-03 13:49:15 +01:00
config conf: add metadata/lvs_history_timeout configuration setting 2016-03-03 13:50:59 +01:00
datastruct doc: change fsf address 2016-01-21 12:11:37 +01:00
device pvs: replace 'unknown device' with [unknown] 2016-03-01 11:12:03 -06:00
display commands: lvdisplay: recognize -H|--history switch 2016-03-04 10:27:45 +01:00
error doc: change fsf address 2016-01-21 12:11:37 +01:00
filters filter: do not check for suspended devs in filter-usable in lvmetad mode 2016-02-03 14:57:36 +01:00
format1 redefine pvcreate structs 2016-02-25 09:14:10 -06:00
format_pool redefine pvcreate structs 2016-02-25 09:14:10 -06:00
format_text coverity: fix possible resource leak in _print_historical_lv function 2016-03-07 10:43:50 +01:00
freeseg doc: change fsf address 2016-01-21 12:11:37 +01:00
label doc: change fsf address 2016-01-21 12:11:37 +01:00
locking lvmlockd: fix sparse snapshot case 2016-02-23 15:45:25 -06:00
log gcc: cleanup some sign warnings 2016-02-23 12:25:25 +01:00
lvmpolld doc: change fsf address 2016-01-21 12:11:37 +01:00
metadata cleanup: comment in the code for renaming historical LVs 2016-03-04 11:46:29 +01:00
mirror doc: change fsf address 2016-01-21 12:11:37 +01:00
misc pvs: replace 'unknown device' with [unknown] 2016-03-01 11:12:03 -06:00
mm doc: change fsf address 2016-01-21 12:11:37 +01:00
properties doc: change fsf address 2016-01-21 12:11:37 +01:00
raid gcc: cleanup some sign warnings 2016-02-23 12:25:25 +01:00
replicator doc: change fsf address 2016-01-21 12:11:37 +01:00
report report: add full_descendants field to display descendants with history 2016-03-03 13:49:15 +01:00
snapshot doc: change fsf address 2016-01-21 12:11:37 +01:00
striped doc: change fsf address 2016-01-21 12:11:37 +01:00
thin metadata: add support for interconnection of thin pool LV segment with indirect origin 2016-03-03 13:46:40 +01:00
unknown doc: change fsf address 2016-01-21 12:11:37 +01:00
uuid doc: change fsf address 2016-01-21 12:11:37 +01:00
zero doc: change fsf address 2016-01-21 12:11:37 +01:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00