]> granicus.if.org Git - sudo/commit
Add support for garbage collecting info passed to the plugin before
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Jan 2016 22:37:15 +0000 (15:37 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 27 Jan 2016 22:37:15 +0000 (15:37 -0700)
commit9b3ef072f9ecc931b6f9c044e862ff8bcd59f4ae
treea38447a613d9f7bd1512b689f2a41a972fe46f59
parentab11cdde2cb1be407f3c720d74c2294518d68dea
Add support for garbage collecting info passed to the plugin before
exit to appease address sanitizer's leak detector (and valgrind's
leak checker).  We can't free these sooner since the plugin may be
using the memory.  For plugin API 2.0 it should be make clear that
the plugin must make a copy of the data in the arrays passed in to
the plugin's open() function.  Only enabled if NO_LEAKS is defined.
src/sudo.c
src/sudo_plugin_int.h
src/ttyname.c