Use unique_xmalloc_ptr in apply_ext_lang_type_printers
authorTom Tromey <tromey@adacore.com>
Thu, 6 Apr 2023 15:05:58 +0000 (09:05 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 6 Apr 2023 16:01:10 +0000 (10:01 -0600)
commit55af06a70e769f4dae10d919f9ea10a802a4aac7
treef87f2cd16480f7b402139e864a0fafaf22b926ef
parentb4f767131f75179df4f47fc40e177f2607fb1003
Use unique_xmalloc_ptr in apply_ext_lang_type_printers

This changes apply_ext_lang_type_printers to use unique_xmalloc_ptr,
removing some manual memory management.  Regression tested on x86-64
Fedora 36.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/extension-priv.h
gdb/extension.c
gdb/extension.h
gdb/python/python.c
gdb/typeprint.c