]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: close session on SETUP error, fixes #4471
authorJaroslav Kysela <perex@perex.cz>
Wed, 5 Jul 2017 15:50:02 +0000 (17:50 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 5 Jul 2017 15:51:19 +0000 (17:51 +0200)
src/satip/rtsp.c

index 4f3bf87ef28aae07ba433dc34fba2ed086020057..08e6faee21acbf7727b86c4c91fbde018e75b359 100644 (file)
@@ -1417,6 +1417,10 @@ rtsp_process_play(http_connection_t *hc, int setup)
   goto end;
 
 error:
+  if (rs) {
+    rtsp_close_session(rs);
+    rtsp_free_session(rs);
+  }
   pthread_mutex_unlock(&rtsp_lock);
 error2:
   http_error(hc, errcode);