After analysis this turns out not to be a bug, the code at the top of get_uid calls select_getuid which calls pp_set_ovr(uid_attribute). That macro points uid_attribute into the global config variable that lives beyond this function call. So no need for get_uid to free it.
** Changed in: multipath-tools (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1592999 Title: memory leak in libmultipath To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1592999/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs