(lt_dlinterface_register): Fail if lt__strdup did.
+2005-11-13 Eric Blake <ebb9@byu.net>
+
+ * libltdl/ltdl.c (lt_dlhandle_iterate): Fix endless loop.
+ (lt_dlinterface_register): Fail if lt__strdup did.
+
2005-11-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/m4/libtool.m4 (_LT_LANG_C_CONFIG):
if (interface_id)
{
interface_id->id_string = lt__strdup (id_string);
- interface_id->iface = iface;
+ if (!interface_id->id_string)
+ FREE (interface_id);
+ else
+ interface_id->iface = iface;
}
return (lt_dlinterface_id) interface_id;
if (!handle)
handle = (lt__handle *) handles;
+ else
+ handle = handle->next;
/* advance while the interface check fails */
while (handle && iterator->iface