diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/xml-support.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a8d16f..65952c4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-10-17 Pedro Alves <palves@redhat.com> + + * xml-support.c (xml_fetch_content_from_file): Call + unique_ptr::release() instead unique_ptr::get() when passing + through xrealloc. + 2017-10-17 Yao Qi <yao.qi@linaro.org> * regcache.c (regcache::xfer_part): Remove parameters read and diff --git a/gdb/xml-support.c b/gdb/xml-support.c index 76d03b9..42a4c91 100644 --- a/gdb/xml-support.c +++ b/gdb/xml-support.c @@ -1039,7 +1039,7 @@ xml_fetch_content_from_file (const char *filename, void *baton) break; len = len * 2; - text.reset ((char *) xrealloc (text.get (), len)); + text.reset ((char *) xrealloc (text.release (), len)); } text.get ()[offset] = '\0'; |