PR gdb/17210 - fix possible memory leak in read_memory_robust