Fix memory leak on error in driver/main.c.

This commit is contained in:
Cary R 2010-05-18 18:46:44 -07:00 committed by Stephen Williams
parent adfbd796b9
commit 09d59d744d
1 changed files with 1 additions and 0 deletions

View File

@ -375,6 +375,7 @@ static int t_preprocess_only(void)
if (rc != 0) {
if (WIFEXITED(rc)) {
fprintf(stderr, "errors preprocessing Verilog program.\n");
free(cmd);
return WEXITSTATUS(rc);
}