This is an automated email from the git hooks/post-receive script.

git pushed a commit to reference refs/pull/15/head
in repository legacy-imlib2.

View the commit online.

commit 0f4f3722b528f1db2c4438ddad35caaaead408ee
Author: NRK <n...@disroot.org>
AuthorDate: Sun Jun 18 14:10:47 2023 +0600

    loading: check for alloc failure
    
    free(NULL) is no-op, so goto bail works here.
---
 src/lib/loaders.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/loaders.c b/src/lib/loaders.c
index 51e0c5f..8772bda 100644
--- a/src/lib/loaders.c
+++ b/src/lib/loaders.c
@@ -183,6 +183,8 @@ __imlib_ProduceLoader(const char *file)
      }
 
    l = malloc(sizeof(ImlibLoader));
+   if (!l)
+      goto bail;
 
    l->handle = dlopen(file, RTLD_NOW | RTLD_LOCAL);
    if (!l->handle)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to