speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/4] fix memory leak with reply GString in load_output module fun


From: Andrei Kholodnyi
Subject: [PATCH 4/4] fix memory leak with reply GString in load_output module function
Date: Tue, 5 Oct 2010 00:00:15 +0200

string was not freed during error handling
---
 src/server/module.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/server/module.c b/src/server/module.c
index 3cd2d42..7380d66 100644
--- a/src/server/module.c
+++ b/src/server/module.c
@@ -213,6 +213,7 @@ load_output_module(char* mod_name, char* mod_prog, char* 
mod_cfgfile, char* mod_
        kill(module->pid, 9);
        waitpid(module->pid, NULL, WNOHANG);
        destroy_module(module);
+       g_string_free(reply, TRUE);
        return NULL;
     }
 
-- 
1.6.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]