Skip to contentSkip to conversation

nbd: Fix memory leak from krealloc() if another allocation fails

PATCH Markus Elfring 1 participant 1 message Apr 10, 2020 Block layer

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

syzkaller reports a memory leak when injecting allocation failures:

…

Quoted 2 lines

as then config->num_connections is not incremented and the cleanup code freeing config->socks is skipped. Just make it run always.

How do you think about to add the tag “Fixes” for the final change description?

Regards,
Markus