From: David Malcolm Date: Wed, 25 Jul 2018 14:18:22 +0000 (+0000) Subject: optinfo-emit-json.cc: fix trivial memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee50ba7793210790dea424d8707aff28459c8f6d;p=gcc.git 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 --- 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