summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-06-01 11:59:52 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-06-01 11:59:52 +0000
commit54cadb7e0f43e2f2c9dc7e52b69a743162905bdf (patch)
tree1a4490383b4cfed9ba0e1b3bd017056dbfae0368 /ext
parentc10bf9272b8d410f81e35839a2ee072925b7f01c (diff)
downloadgst-plugins-bad-54cadb7e0f43e2f2c9dc7e52b69a743162905bdf.tar.gz
gst-plugins-bad-54cadb7e0f43e2f2c9dc7e52b69a743162905bdf.tar.bz2
gst-plugins-bad-54cadb7e0f43e2f2c9dc7e52b69a743162905bdf.zip
ext/neon/gstneonhttpsrc.c: Don't leak buffer when returning an error.
Original commit message from CVS: * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_create): Don't leak buffer when returning an error.
Diffstat (limited to 'ext')
-rw-r--r--ext/neon/gstneonhttpsrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c
index 69993f88..abcbd0f2 100644
--- a/ext/neon/gstneonhttpsrc.c
+++ b/ext/neon/gstneonhttpsrc.c
@@ -473,6 +473,8 @@ read_error:
GST_ELEMENT_ERROR (src, RESOURCE, READ,
(NULL), ("Could not read any bytes (%i, %s)", read,
ne_get_error (src->session)));
+ gst_buffer_unref (*outbuf);
+ *outbuf = NULL;
return GST_FLOW_ERROR;
}
}