From a3c6017d1b4ecc2107745eb1b02d6e8caf382b11 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Sun, 30 May 2010 00:48:37 -0700 Subject: [PATCH] Fix memory leak on reconfiguration Caught by valgrind. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 30361c8..40823e3 100644 --- a/main.c +++ b/main.c @@ -50,6 +50,7 @@ static void read_config(int signalnum) { log_config(cfg.logging); ctx.continuous_mode = cfg.continuous_mode; + free(ctx.other_browser_cmd); if (cfg.other_browser_cmd) { if (!(ctx.other_browser_cmd = strdup(cfg.other_browser_cmd))) { log_perror(errno, "Failed to set other_browser_cmd"); -- 1.7.9.5