https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63854

--- Comment #22 from dmalcolm at gcc dot gnu.org ---
Author: dmalcolm
Date: Mon Dec  1 17:22:19 2014
New Revision: 218231

URL: https://gcc.gnu.org/viewcvs?rev=218231&root=gcc&view=rev
Log:
PR jit/63854: Fix leak within jit-builtins.c

gcc/jit/ChangeLog:
    PR jit/63854
    * jit-builtins.c
    (gcc::jit::recording::builtins_manager::make_fn_type): Call the
    context's new_function_type method, rather than directly creating
    a function_type instance.
    * jit-recording.c
    (gcc::jit::recording::context::new_function_type): New method,
    adapted from part of...
    (gcc::jit::recording::context::new_function_ptr_type): ...this.
    Update to call new_function_type.
    * jit-recording.h
    (gcc::jit::recording::context::new_function_type): New method.

Modified:
    trunk/gcc/jit/ChangeLog
    trunk/gcc/jit/jit-builtins.c
    trunk/gcc/jit/jit-recording.c
    trunk/gcc/jit/jit-recording.h

Reply via email to