nbd: Fix memory leak from krealloc() if another allocation fails
Quoted 1 line
syzkaller reports a memory leak when injecting allocation failures:
…
Quoted 2 lines
as then
config->num_connectionsis not incremented and the cleanup code freeingconfig->socksis skipped. Just make it run always.
How do you think about to add the tag “Fixes” for the final change description?
Regards,
Markus