so many memory haven't release affter gst_element_set_state(p_tsc->e_rtpbin,GST_STATE_NULL); call. 
i want to transcode webrtc streamer to rtmp an send to rtmp-server. Cause server mey receive mulitiple webrtc stream. So i creat pipe when new webrtc session connect, i use rtpbin handle rtp package, when stream coming build rtpvp8depay --> vp8dec bin in pad-add event callback and link to input-selector and active the input pad. the pipe was as below.

                                                                   |------------------------------|               |     
                                                                   |                                                      |               |---------------|     
 udpsrc --> rtpbin---> pad-add --> | rtpvp8depay --> vp8dec ------------> |               |
                                                                   |                                                      |               |                           |         
                                                                   |-----------dynamic bin--------|               |                   |
                                                                                                                                                  |input-selector | -- x264enc --> flvmux --> rtmpsink
                                                                   |------------------------------|               |                   |
                                   |                                                      |               |                   |
                                   | autovideosrc ----------------------->|---------------|
                                   |                                                      |
                                   |-----static bin --------------|
                                                                   
since it run in centos , it while the is no stream and no pipe and element was creat , my take almost zero memory .
pipe creat and destory with stream come and go , my application was  memory consumed increase .
i have use valgrind to debug. but my application run so slow and  collapse without reason.
so far my pipe work so good except memory leak.
Any Suggestions is welcome .

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/memory-leak-in-webrtc-stream-transcode-to-rtm-tp4679257.html">memory leak in webrtc stream transcode to rtm</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>