From 7ea2d051c15595308efcd769146e33efa519c6c8 Mon Sep 17 00:00:00 2001 From: Johan Pascal Date: Mon, 17 Apr 2017 11:55:12 +0700 Subject: [PATCH] memory leak --- coreapi/linphonecore.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index be59b169a..6a25d6a48 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -6243,8 +6243,11 @@ void linphone_core_set_zrtp_secrets_file(LinphoneCore *lc, const char* file){ if (rename(file, bkpFile)==0 && rename(tmpFile, file)==0) { lp_config_set_int(lc->config, "sip", "zrtp_cache_migration_done", TRUE); } + bctbx_free(bkpFile); } + xmlFree(cacheXml); } + bctbx_free(tmpFile); } else { linphone_core_zrtp_cache_db_init(lc, file); }