]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix memory leak in idnode.c Flole998-patch-1 1883/head
authorFlole <Flole998@users.noreply.github.com>
Sat, 9 Aug 2025 17:23:17 +0000 (19:23 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Aug 2025 17:23:17 +0000 (19:23 +0200)
src/idnode.c

index d75a1e4e3558029b224f38773c684116d55c04a7..1508b17736eb9c0a36faa10b2cf29591417e455a 100644 (file)
@@ -954,6 +954,7 @@ idnode_filter_add_str
   ele->comp = comp;
   if (comp == IC_RE) {
     if (regcomp(&ele->u.re, val, REG_ICASE | REG_EXTENDED | REG_NOSUB)) {
+      free(ele->key);
       free(ele);
       return;
     }