diff options
author | Luca BRUNO <luca.bruno@coreos.com> | 2022-01-10 09:30:11 +0000 |
---|---|---|
committer | Luca BRUNO <luca.bruno@coreos.com> | 2022-01-10 09:30:11 +0000 |
commit | 0b1a0856925c32fffa93c526b9f415d455d71a1d (patch) | |
tree | ada0dff8399dc28ec1dfd11ce5ef5abacaae89f6 /src/boot | |
parent | 6cb097fb5e765802008d91f745139f7ecbc6fbe4 (diff) | |
download | ostree-0b1a0856925c32fffa93c526b9f415d455d71a1d.tar.gz |
libotutil: avoid leaking builder memory on error
This swaps the order of a couple of input sanity checks, in order
to fix a minor memory leak due to an early-return on the error
path.
Memory for the result is now allocated only after input has been
sanity-checked.
It fixes a static analysis warning highlighted by Coverity.
Diffstat (limited to 'src/boot')
0 files changed, 0 insertions, 0 deletions