]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: fix another memory leak
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Jan 2016 17:02:32 +0000 (18:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Jan 2016 17:02:32 +0000 (18:02 +0100)
src/timeshift/timeshift_writer.c

index 06558ac49c73570d47cda49580a6da44182a3720..15ca9b789a614efae01efa6b027b93336fbadae7 100644 (file)
@@ -367,6 +367,8 @@ live:
   pthread_mutex_lock(&ts->state_mutex);
   if (ts->state == TS_LIVE)
     streaming_target_deliver2(ts->output, sm);
+  else
+    streaming_msg_free(sm);
   pthread_mutex_unlock(&ts->state_mutex);
 }