Skip to contentSkip to conversation

multipathd: cancel free(pp->getuid) in orphan_path()

DISCUSSION Gioh Kim 2 participants 2 messages Aug 9, 2016 Device mapper

lore
Share & tools
lore

Gioh Kim

author
#0 lore raw

Hello,

I have found "free(pp->getuid)" is added into orphan_path().

I think it'd better to revert the patch: http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=commit;h=44b753d34ff82ecc229407fe8247b11f15f435ce

The latest code does not allocation memory for pp->getuid, but just share the global value.

Therefore pp->getuid should not be freed.

I proposed it but I am wrong.

I'm very sorry to confuse you.

Signature · 3 lines
Best regards,
Gioh Kim
TEL: 0176 2697 8962
#1 lore raw

Reverted,
Thanks.

Quoted 30 lines · Gioh Kim

Hello,

I have found "free(pp->getuid)" is added into orphan_path().

I think it'd better to revert the patch: http://git.opensvc.com/gitweb.
cgi?p=multipath-tools/.git;a=commit;h=44b753d34ff82ecc229407 fe8247b11f15f435ce

The latest code does not allocation memory for pp->getuid, but just share the global value.

Therefore pp->getuid should not be freed.

I proposed it but I am wrong.

I'm very sorry to confuse you.

--
Best regards,
Gioh Kim
TEL: 0176 2697 8962

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel