diff options
author | peter <peter@FreeBSD.org> | 2005-06-24 00:50:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-06-24 00:50:12 +0000 |
commit | 756b97ccf0d5f9d5f759d5979604efe2c242866a (patch) | |
tree | 0521e4172cbb8c1c0bf2378bf7b749261e6cfd37 /gnu | |
parent | a5210ef96000fbbc89552a86d0bb13b0c17246ef (diff) | |
download | FreeBSD-src-756b97ccf0d5f9d5f759d5979604efe2c242866a.zip FreeBSD-src-756b97ccf0d5f9d5f759d5979604efe2c242866a.tar.gz |
kvm_openfiles() uses the supplied buffer for storing error messages
in future calls, so we can't free it here. The right place to free the
buffer would be to be after kvm_close(), but we don't do that yet. A
static buffer would work too.
Reviewed by: marcel (who has other plans for this anyway)
Approved by: re
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/main.c b/gnu/usr.bin/gdb/kgdb/main.c index 7ae2b9e..22a9584 100644 --- a/gnu/usr.bin/gdb/kgdb/main.c +++ b/gnu/usr.bin/gdb/kgdb/main.c @@ -409,7 +409,6 @@ main(int argc, char *argv[]) kvm = kvm_openfiles(kernel, vmcore, NULL, O_RDONLY, s); if (kvm == NULL) errx(1, s); - free(s); kgdb_thr_init(); } |