From MAILER-DAEMON Mon Jan 16 08:46:14 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cT7by-0005rE-N0
	for mharc-libtool-commit@gnu.org; Mon, 16 Jan 2017 08:46:14 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42480)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1cT7bv-0005o1-1X
	for libtool-commit@gnu.org; Mon, 16 Jan 2017 08:46:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1cT7bu-0005iv-0j
	for libtool-commit@gnu.org; Mon, 16 Jan 2017 08:46:11 -0500
Received: from vcs.savannah.gnu.org ([208.118.235.72]:50802)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1cT7bt-0005ip-Se
	for libtool-commit@gnu.org; Mon, 16 Jan 2017 08:46:09 -0500
Received: by vcs.savannah.gnu.org (Postfix, from userid 129938)
	id 97DD7220110; Mon, 16 Jan 2017 13:46:09 +0000 (UTC)
From: "Pavel Raiskup" <praiskup@redhat.com>
To: libtool-commit@gnu.org
Subject: [SCM] GNU Libtool branch, master, updated. v2.4.6-35-gf003a1f
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 08c5524fb24b923ad91c2bdca836f1eafa56fd6c
X-Git-Newrev: f003a1f96e67f3cb823c1c7081efab445e3f0c83
Message-Id: <20170116134609.97DD7220110@vcs.savannah.gnu.org>
Date: Mon, 16 Jan 2017 13:46:09 +0000 (UTC)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.72
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtool-commit/>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Jan 2017 13:46:12 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  f003a1f96e67f3cb823c1c7081efab445e3f0c83 (commit)
      from  08c5524fb24b923ad91c2bdca836f1eafa56fd6c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f003a1f96e67f3cb823c1c7081efab445e3f0c83
Author: Pavel Raiskup <praiskup@redhat.com>
Date:   Mon Jan 16 12:45:03 2017 +0100

    libltdl: handle ENOMEM in lt_dlloader_remove()
    
    Reported by Alexander Hass.
    
    * libltdl/lt_dlloader.c (lt_dlloader_remove): Detect NULL return
    value from lt_dlinterface_register.

-----------------------------------------------------------------------

Summary of changes:
 NO-THANKS             |    1 +
 libltdl/lt_dlloader.c |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/NO-THANKS b/NO-THANKS
index 5aba7c8..c59662c 100644
--- a/NO-THANKS
+++ b/NO-THANKS
@@ -30,6 +30,7 @@ note to the bug-report mailing list (as seen at end of e.g., libtool --help).
 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
diff --git a/libltdl/lt_dlloader.c b/libltdl/lt_dlloader.c
index ba103c0..dbc645d 100644
--- a/libltdl/lt_dlloader.c
+++ b/libltdl/lt_dlloader.c
@@ -168,6 +168,10 @@ lt_dlloader_remove (const char *name)
 
   /* 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;


hooks/post-receive
-- 
GNU Libtool


