]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
global headers: fix memory leak in error path
authorJaroslav Kysela <perex@perex.cz>
Fri, 17 Jun 2016 20:13:30 +0000 (22:13 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 17 Jun 2016 20:13:30 +0000 (22:13 +0200)
src/plumbing/globalheaders.c

index 558af4a3d8831d6f88f46fe3d76dee1806ed3446..4c3553a9cca92d1ec32ca8672458ed96735802fc 100644 (file)
@@ -284,6 +284,7 @@ gh_hold(globalheaders_t *gh, streaming_message_t *sm)
                                                  pkt->pkt_componentindex);
     if (ssc == NULL) {
       tvherror("globalheaders", "Unable to find component %d", pkt->pkt_componentindex);
+      streaming_msg_free(sm);
       return;
     }