libdl: fix memleak for local scope of dlopened's needed libraries
libdl: fix memleak for local scope of dlopened's needed libraries

Signed-off-by: Filippo Arcidiacono <26825f07340f791bc0d38da89fcffcd93550a83c@st.com>
Signed-off-by: Carmelo Amoroso <532378793705a04edd56deb76ad8c0442834d55d@st.com>
Signed-off-by: Bernhard Reutner-Fischer <ce1ac9e9ad16abccd7821f371ad381197b4768ac@gmail.com>

ndmsystems/uClibc,ndmsystems/uClibc,ndmsystems/uClibc,ndmsystems/uClibc