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

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit d30460b39bc6dd900d2036db096fa7797a1dea50
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Aug 27 18:21:03 2022 +0200

    image: Fix memory leak when cloning images
    
    Was introduced in recent infrastructure changes.
---
 src/lib/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/image.c b/src/lib/image.c
index 15ba4ef..2321259 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -183,7 +183,7 @@ __imlib_ConsumeImage(ImlibImage * im)
 
    __imlib_FreeAllTags(im);
 
-   if (im->fi && im->fi->name && im->fi->name != im->file)
+   if (im->file && (!im->fi || im->fi->name != im->file))
       free(im->file);
    free(im->key);
    if (im->data && !IM_FLAG_ISSET(im, F_DONT_FREE_DATA))

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

Reply via email to