From 5d320760eb8d08601469aa9fb2d33416b13aeb16 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 18 May 2010 18:46:44 -0700 Subject: [PATCH] Fix memory leak on error in driver/main.c. (cherry picked from commit 09d59d744dbd8d496a24a4c2d50b441213797c44) --- driver/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/main.c b/driver/main.c index 48d11c7c7..ac3cf9c9b 100644 --- a/driver/main.c +++ b/driver/main.c @@ -367,6 +367,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); }