]> granicus.if.org Git - yasm/commit
Fix a few things found by valgrind. There will be more of these.
authorPeter Johnson <peter@tortall.net>
Sun, 5 Mar 2006 07:50:16 +0000 (07:50 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 5 Mar 2006 07:50:16 +0000 (07:50 -0000)
commit48720ff6a656a85eb221dbb09c577c9699e4eeec
treea054c44e0285f0a2f00024ee254265a763c6b6ea
parent9a0faf7460e6a296d673a345e62b63fa4b247727
Fix a few things found by valgrind.  There will be more of these.

* bytecode.c (yasm_bc_create_insn): Initialize operands list if none were
given.
* section.c (yasm_object_destroy): Free filenames.
* gas-token.c (fill): Use memmove instead of memcpy on overlapping memory
copy.
* nasm-token.c (fill): Likewise.
* elf.c (elf_secthead_destroy): Free size member.

svn path=/trunk/yasm/; revision=1399
libyasm/bytecode.c
libyasm/section.c
modules/objfmts/elf/elf.c
modules/parsers/gas/gas-token.re
modules/parsers/nasm/nasm-token.re