Ticket #13136: 0043-find_paths.cpp-fix-memory-leak.patch

File 0043-find_paths.cpp-fix-memory-leak.patch, 677 bytes (added by mt, 3 years ago)
  • src/system/libroot/os/find_paths.cpp

    From f4521a04aaac78796e92cc84d3cf1546ef428226 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Fri, 30 Dec 2016 12:03:21 +0900
    Subject: [PATCH 43/43] find_paths.cpp: fix memory leak
    
    ---
     src/system/libroot/os/find_paths.cpp | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/system/libroot/os/find_paths.cpp b/src/system/libroot/os/find_paths.cpp
    index 076eaa0..2660cd1 100644
    a b public:  
    125125                        homeInstallationLocation);
    126126                if (locations != NULL && locations->IsValid())
    127127                    return locations;
     128                delete locations;
    128129            }
    129130        }
    130131