[libgepub/wip/hadess/disable-javascript: 4/4] lib: Fix memory leak




commit 323d502507beba4e9f401a74d4303a648fe1788c
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Mar 31 13:19:20 2021 +0200

    lib: Fix memory leak

 libgepub/gepub-doc.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgepub/gepub-doc.c b/libgepub/gepub-doc.c
index 53c2734..595f9a5 100644
--- a/libgepub/gepub-doc.c
+++ b/libgepub/gepub-doc.c
@@ -675,6 +675,7 @@ gepub_doc_get_current_with_epub_uris (GepubDoc *doc)
 
     replaced = gepub_utils_replace_resources (content, base);
 
+    g_free (base);
     g_free (path);
     g_bytes_unref (content);
 


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