[libbdplus-devel] Fix leak

anonymous git at videolan.org
Fri Mar 3 14:33:01 CET 2017


libbdplus | branch: master | anonymous <anonymous at anonymous.org> | Fri Mar  3 15:29:43 2017 +0200| [89cebac5c6087d084e3d55b05b55cbb3f5e7fc98] | committer: anonymous

Fix leak

> http://git.videolan.org/gitweb.cgi/libbdplus.git/?a=commit;h=89cebac5c6087d084e3d55b05b55cbb3f5e7fc98
---

 src/libbdplus/bdplus_config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbdplus/bdplus_config.c b/src/libbdplus/bdplus_config.c
index b2cad1d..a15e194 100644
--- a/src/libbdplus/bdplus_config.c
+++ b/src/libbdplus/bdplus_config.c
@@ -291,6 +291,7 @@ int bdplus_config_load(const char *config_path,
 
     if (!config->aes_keys || !config->ecdsa_keys || !config->dev) {
         BD_DEBUG(DBG_FILE | DBG_CRIT, "out of memory\n");
+        X_FREE(base);
         return -1;
     }
 



More information about the libbdplus-devel mailing list