[libgepub] lib: Fix memory leak in gepub_utils_get_text_elements()



commit 79a416ad5899b7d3c7b4d1576ab4376aa4021050
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 22 10:13:19 2017 +0200

    lib: Fix memory leak in gepub_utils_get_text_elements()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784081

 libgepub/gepub-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgepub/gepub-utils.c b/libgepub/gepub-utils.c
index e5b5ab4..f6c9a25 100644
--- a/libgepub/gepub-utils.c
+++ b/libgepub/gepub-utils.c
@@ -215,6 +215,7 @@ gepub_utils_get_text_elements (xmlNode *node)
                 text_chunk->text = g_strdup_printf ("%s\n", old_text);
                 g_free (old_text);
             }
+            g_free (nodetag);
         }
 
         // TODO add images to this list of objects


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]