]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: fix memory leak caused by previous patch
authorJaroslav Kysela <perex@perex.cz>
Sun, 8 Nov 2015 13:21:05 +0000 (14:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 8 Nov 2015 13:21:05 +0000 (14:21 +0100)
src/epggrab/module.c

index 3b23c62fbb0534ec4bedcdf2f0793be6fa7f682a..8c69a78c88c970d398f9b7668136963b6a9ebf95 100644 (file)
@@ -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);