* solib-target.c (solib_target_current_sos): Remove 'const'
authorPierre Muller <muller@sourceware.org>
Fri, 14 Dec 2012 23:27:13 +0000 (23:27 +0000)
committerPierre Muller <muller@sourceware.org>
Fri, 14 Dec 2012 23:27:13 +0000 (23:27 +0000)
commitb25d79d436158060439a2ba989acc84259f3a369
treea554de20ef604d09b52adbf03f40ba6eaa678e0b
parent774094928e3d322fc18bf8d8327cd665819a3796
* solib-target.c (solib_target_current_sos): Remove 'const'
qualifier from type of library_document local variable to be
able to free it and avoid a memory leak.
Use cleanup chain to avoid leak even if exceptino is generated.
gdb/ChangeLog
gdb/solib-target.c