Use gdb::def_vector in find_source_lines
authorTom Tromey <tom@tromey.com>
Tue, 6 Feb 2018 19:51:42 +0000 (12:51 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 8 Feb 2018 18:46:57 +0000 (11:46 -0700)
commita9abc4345150a3f3e30da78f8d68c1f9e0198772
treebbd2eab5ca8409b61c80fda478a10f60b90f8609
parent84f27c6fcbbf580434c7d56e68fa42fe7cf7ccb9
Use gdb::def_vector in find_source_lines

This replaces an explicit malloc and a cleanup with a gdb::def_vector.

2018-02-08  Tom Tromey  <tom@tromey.com>

* source.c (find_source_lines): Use gdb::def_vector.
gdb/ChangeLog
gdb/source.c