projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c79cf17
)
tests: rtpulpfec: fix buffer leak in unit test
author
Tim-Philipp Müller
<tim@centricular.com>
Wed, 6 Mar 2019 17:35:58 +0000
(17:35 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 6 Mar 2019 19:40:10 +0000
(19:40 +0000)
This freed wrapped memory instead of the GstMemory or buffer.
tests/check/elements/rtpulpfec.c
patch
|
blob
|
history
diff --git
a/tests/check/elements/rtpulpfec.c
b/tests/check/elements/rtpulpfec.c
index
9910683
..
5ce03fa
100644
(file)
--- a/
tests/check/elements/rtpulpfec.c
+++ b/
tests/check/elements/rtpulpfec.c
@@
-122,7
+122,7
@@
lose_and_recover_test (GstHarness * h, guint16 lost_seq,
gst_rtp_buffer_unmap (&rtpout);
fail_unless (!GST_BUFFER_FLAG_IS_SET (bufout, GST_RTP_BUFFER_FLAG_REDUNDANT));
gst_buffer_unref (bufout);
- g
_free (reccopy
);
+ g
st_buffer_unref (wrap
);
/* Pushing the next buffer with discont flag set */
bufout = gst_rtp_buffer_new_allocate (0, 0, 0);