From: Jaroslav Kysela Date: Sun, 8 Nov 2015 13:21:05 +0000 (+0100) Subject: epggrab: fix memory leak caused by previous patch X-Git-Tag: v4.2.1~1627 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4085ac249608f66c48e0586eb6a2e9161fe2cf6f;p=thirdparty%2Ftvheadend.git epggrab: fix memory leak caused by previous patch --- diff --git a/src/epggrab/module.c b/src/epggrab/module.c index 3b23c62fb..8c69a78c8 100644 --- a/src/epggrab/module.c +++ b/src/epggrab/module.c @@ -303,6 +303,8 @@ epggrab_module_int_done( void *m ) mod->active = 0; free((char *)mod->path); mod->path = NULL; + free((char *)mod->args); + mod->args = NULL; } epggrab_module_int_t *epggrab_module_int_create @@ -345,7 +347,7 @@ char *epggrab_module_grab_spawn ( void *m ) /* Debug */ tvhlog(LOG_INFO, mod->id, "grab %s", mod->path); - /* Quiet */ + /* Extra arguments */ if (mod->args) { path = alloca(strlen(mod->path) + strlen(mod->args) + 2); strcpy(path, mod->path);