Release 5.5.26: Coverity fix 61/216161/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.023143 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090745 accepted/tizen/unified/20191021.220204 submit/tizen/20191021.144555 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 21 Oct 2019 14:26:34 +0000 (16:26 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 21 Oct 2019 14:29:55 +0000 (16:29 +0200)
This release brings:

 - Fix memory leak

Change-Id: Ida144b8ca6bd3f5ca954ef8478545f3dfff293e0

packaging/crash-worker.spec
packaging/crash-worker_system-tests.spec
src/livedumper/core.hpp

index e4d58a0..41fe249 100644 (file)
@@ -13,7 +13,7 @@
 
 Name:      crash-worker
 Summary:    Crash-manager
-Version:    5.5.25
+Version:    5.5.26
 Release:    1
 Group:      Framework/system
 License:    Apache-2.0 and BSD
index 163c147..f289f5e 100644 (file)
@@ -8,7 +8,7 @@
 
 Name:          crash-worker_system-tests
 Summary:       Package with binaries and scripts for crash-worker system tests
-Version:       5.5.25
+Version:       5.5.26
 Release:       1
 Group:         Framework/system
 License:       Apache-2.0 and BSD
index 2e4a8c4..e9ae8dc 100644 (file)
@@ -308,6 +308,9 @@ class Core {
                sym_data->data = elf_getdata(scn, nullptr);
                if (sym_data->shdr.sh_entsize == 0) {
                        logger.log_info("sh_entsize is zero for %s", lib.c_str());
+                       elf_end(sym_data->elf);
+                       close(sym_data->fd);
+                       delete sym_data;
                        return nullptr;
                }
                sym_data->count = sym_data->shdr.sh_size / sym_data->shdr.sh_entsize;