<div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>I also tried with valgind using the follwoing command:<br>G_SLICE=always-malloc G_DEBUG=gc-friendly  valgrind -v --tool=memcheck --leak-check=full --num-callers=40  --log-file=valgrind.log ./gstapp<br><br></div>Where gstapp is my executable.<br><br></div>I have attached the valgrind logs.<br></div>I can see that the memory leak is happening at 3 places:<br></div>While creating the plugins and somewhere in GLIB.<br></div>Please check line number : 4769, 4787,5510.<br><br><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="color:rgb(31,73,125)">With Warm Regards,</span></b></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="color:rgb(31,73,125)">Shrishty Deorari</span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="color:rgb(31,73,125)">VVDN Technologies Pvt Ltd<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt"><b style="font-family:Calibri,sans-serif;font-size:11pt"><span style="color:rgb(31,73,125)">Cell : </span></b><span style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)">+91 </span><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:14.6666669845581px">7773980237</span></font><span style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)"> | </span><b style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)">Skype :</b><span style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(31,73,125)"> shrishty_vvdn</span></p></div><div><span style="color:rgb(31,73,125)"><br></span></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Oct 21, 2016 at 8:14 PM, Arun Raghavan <span dir="ltr"><<a href="mailto:arun@arunraghavan.net" target="_blank">arun@arunraghavan.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 21 Oct 2016, at 07:14 PM, Shrishty Deorari wrote:<br>
> Hi<br>
><br>
> I have a querry regarding the memory leak in the gstreamer pipeline.<br>
> I am trying to run a Gstreamer pipeline code in a loop:<br>
><br>
><br>
> The simpler version of my code: Reads the video file and displays on the<br>
> screen using xvimagesink.<br>
> Now for every Iteration or loop my memory increases by +.2 . This does'nt<br>
> seem such a big issue here but when I run this for a log run like over<br>
> night this memory leak issue becomes big.<br>
><br>
> I am doing gst_object_unref at all the possible places i could. Please<br>
> have<br>
> a look at mini version of my whole program, here also problem is same.<br>
> Please let me know if I am missing to clear out any memory.<br>
><br>
> I have attached the File below.<br>
<br>
</span>Did you try running the code under valgrind? Using that, and looking at<br>
the definitely/indirectly lost entries is usually helpful. There will be<br>
a number of false positives, some of which can be suppressed with the<br>
suppressions file in the common/ directory in the gstreamer sources.<br>
<br>
With a quick run of your code over 2 iterations, I see no leaks.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Arun<br>
</font></span></blockquote></div><br></div>