tinyvm/libtvm
Jeff Epler 7cec815530 Don't allocate args when instruction parsing fails
.. it looks like (opcode == -1) should maybe lead to an error return
rather than a continue, but in any case we need to avoid leaking
'args' in this situation.

.. the previous arrangement lead to compiler diagnostics when
building with 'scan-build make', such as:

libtvm/tvm_parser.c:186:39: warning: Potential leak of memory pointed to by 'args'
        for (line_idx = 0; tokens[line_idx]; line_idx++) {
                                             ^~~~~~~~
1 warning generated.
2018-03-17 14:02:50 -05:00
..
.gitignore Updated .gitignore 2011-09-04 06:04:00 -07:00
tvm.c tvm_vm_create(): fix possible NULL pointer dereferencing. 2017-10-28 14:00:01 +03:00
tvm_file.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_htab.c Delete dead code 2018-03-17 13:48:25 -05:00
tvm_lexer.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_memory.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_parser.c Don't allocate args when instruction parsing fails 2018-03-17 14:02:50 -05:00
tvm_preprocessor.c Free memory in exit paths 2018-03-17 14:00:36 -05:00
tvm_program.c tvm_prog_destroy(): check arg buckets before free 2017-02-12 12:01:16 -08:00