changeset 27730:48fbac972d03

Fix double free in demux_nut, patch by Onur K¸«ä¸«®¸«äk.
author ods15
date Mon, 13 Oct 2008 22:32:20 +0000
parents 85a9b1052a44
children d6c531d799cd
files libmpdemux/demux_nut.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nut.c	Mon Oct 13 22:25:35 2008 +0000
+++ b/libmpdemux/demux_nut.c	Mon Oct 13 22:32:20 2008 +0000
@@ -86,8 +86,6 @@
 	while ((ret = nut_read_headers(nut, &s, NULL)) == NUT_ERR_EAGAIN);
 	if (ret) {
 		mp_msg(MSGT_HEADER, MSGL_ERR, "NUT error: %s\n", nut_error(ret));
-		nut_demuxer_uninit(nut);
-		free(priv);
 		return NULL;
 	}