From ee50ba7793210790dea424d8707aff28459c8f6d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 25 Jul 2018 14:18:22 +0000 Subject: [PATCH] optinfo-emit-json.cc: fix trivial memory leak gcc/ChangeLog: * optinfo-emit-json.cc (class optrecord_json_writer): Convert field "m_scopes" from vec to auto_vec. From-SVN: r262967 --- gcc/ChangeLog | 5 +++++ gcc/optinfo-emit-json.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbd9fd6cf37..9e7d32fb420 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-25 David Malcolm + + * optinfo-emit-json.cc (class optrecord_json_writer): Convert + field "m_scopes" from vec to auto_vec. + 2018-07-25 Martin Liska * config/powerpcspe/powerpcspe-protos.h (rs6000_loop_align): Fix diff --git a/gcc/optinfo-emit-json.cc b/gcc/optinfo-emit-json.cc index 6460a812f9e..2199d52888b 100644 --- a/gcc/optinfo-emit-json.cc +++ b/gcc/optinfo-emit-json.cc @@ -75,7 +75,7 @@ private: json::array *m_root_tuple; /* The currently open scopes, for expressing nested optimization records. */ - vec m_scopes; + auto_vec m_scopes; }; /* optrecord_json_writer's ctor. Populate the top-level parts of the -- 2.30.2