tisc

tiny instruction set computer
Log | Files | Refs | README

commit 75f8c2c89417874ba4a65e32d81e210d8e3e9988
parent 33736af6fe6377f78d180614bbd26b86ac36051b
Author: Paul Longtine <paul@nanner.co>
Date:   Wed, 27 Jan 2021 18:37:18 -0500

Merge branch 'fixMissingFree'

Diffstat:
Mtisc.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/tisc.c b/tisc.c @@ -563,6 +563,7 @@ int main(int argc, char *argv[]) if (process(line_number, &address, w_buffer, label, opcodes, args) == 0) { printf("Process: Error on line #%i\n", line_number); + free(w_buffer); goto CLOSEFILES; } } @@ -570,6 +571,8 @@ int main(int argc, char *argv[]) // Output Logisim raw v2.0 format output_file(outputf, w_buffer, full_size); + + free(w_buffer); } CLOSEFILES: