aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-07-18 15:18:02 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-07-18 15:18:02 +0000
commit09ec9b38d64692a0dafd73936365f15a8d4ab383 (patch)
treed100808e25f8ca3a78fce25c61997022bbec726e /gdb/gdbserver/linux-low.c
parent4894ac5dcfd7c4e1f7bb594c6883480d448077f9 (diff)
downloadgdb-09ec9b38d64692a0dafd73936365f15a8d4ab383.zip
gdb-09ec9b38d64692a0dafd73936365f15a8d4ab383.tar.gz
gdb-09ec9b38d64692a0dafd73936365f15a8d4ab383.tar.bz2
2002-07-18 Michal Ludvig <mludvig@suse.cz>
* linux-low.c (regsets_store_inferior_registers): Add free() at the end of a loop to prevent memory leak. * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers. (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r--gdb/gdbserver/linux-low.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index c272fed..7048daf 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -1097,6 +1097,7 @@ regsets_store_inferior_registers ()
}
}
regset ++;
+ free (buf);
}
return 0;
}