.. 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.
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| tvm.c | ||
| tvm_file.c | ||
| tvm_htab.c | ||
| tvm_lexer.c | ||
| tvm_memory.c | ||
| tvm_parser.c | ||
| tvm_preprocessor.c | ||
| tvm_program.c | ||