crash-manager: Fix memory leak 25/258425/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 17 May 2021 10:47:57 +0000 (12:47 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 17 May 2021 10:47:57 +0000 (12:47 +0200)
Change-Id: I022a378b011f1f7220f87946c85eca2e7ec8553c

src/crash-manager/so-info.c

index a80cc52..03f01fb 100644 (file)
@@ -582,6 +582,7 @@ void get_and_save_so_info(char *map_path, char *out_path)
                        }
                        ri->app_name = get_app_name_from_path(file_path);
                        if (ri->app_name == NULL) {
+                               free(ri->file_path);
                                free(ri);
                                free(build_id);
                                continue;