diff options
author | Adrian Thurston <thurston@complang.org> | 2016-03-10 15:40:49 +0100 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2016-03-10 15:40:49 +0100 |
commit | c64d1d965b47cac4376e5968b5dd88004a2e1a5d (patch) | |
tree | 1f85f8624e532a58e6c7d0d4e418ff24029f6d22 | |
parent | 0814cc34b38b6c0667427577890b0803d7d835ab (diff) | |
download | colm-c64d1d965b47cac4376e5968b5dd88004a2e1a5d.tar.gz |
added missing free in system function
-rw-r--r-- | src/bytecode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index 93d76914..076319f4 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -1,5 +1,5 @@ /* - * Copyright 2006-2012 Adrian Thurston <thurston@complang.org> + * Copyright 2006-2016 Adrian Thurston <thurston@complang.org> */ /* This file is part of Colm. @@ -3679,6 +3679,8 @@ again: int res = system( cmd0 ); + free( cmd0 ); + if ( WIFSIGNALED( res ) ) raise( WTERMSIG( res ) ); res = WEXITSTATUS( res ); |