Reported by Alexander Hass.
* libltdl/lt_dlloader.c (lt_dlloader_remove): Detect NULL return
value from lt_dlinterface_register.
Akim Demaille akim@epita.fr
!Albert Chin
Albert Chin-A-Young china@thewrittenword.com
+Alexander Hass alexander.hass@sap.com
Andreas Schwab schwab@suse.de
Brian Barrett brbarret@osl.iu.edu
!Brian W. Barret
/* Fail if there are any open modules that use this loader. */
iface = lt_dlinterface_register (id_string, NULL);
+ if (!iface)
+ /* No memory, error is already set. */
+ return 0;
+
while ((handle = lt_dlhandle_iterate (iface, handle)))
{
lt_dlhandle cur = handle;