Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: fix memory leak caused by previous patch
  • Loading branch information
perexg committed Nov 8, 2015
1 parent f0c456d commit 4085ac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/epggrab/module.c
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4085ac2

Please sign in to comment.