diff options
author | John Baldwin <jhb@FreeBSD.org> | 2018-01-09 13:35:17 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2018-01-09 13:35:17 -0800 |
commit | 262f62f57d987269152412a55c458a03adc6ddd6 (patch) | |
tree | ff23df9bda29d6567d72d1640e0c4b6dc27660ff /include/md5.h | |
parent | b999e2038dbc54e2c8b1c390f8b8fe50d0f1d10a (diff) | |
download | gdb-262f62f57d987269152412a55c458a03adc6ddd6.zip gdb-262f62f57d987269152412a55c458a03adc6ddd6.tar.gz gdb-262f62f57d987269152412a55c458a03adc6ddd6.tar.bz2 |
Use gdb::unique_xmalloc_ptr<> instead of a deleter that invokes free().
Since xfree() always wraps free(), it is safe to use the xfree deleter
for buffers allocated by library routines such as kinfo_getvmmap() that
must be released via free().
gdb/ChangeLog:
* fbsd-nat.c (struct free_deleter): Remove.
(fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
Diffstat (limited to 'include/md5.h')
0 files changed, 0 insertions, 0 deletions