Hi,

could you please clarify a bit?

Are you talking about using a shared drive or clipboard file copy?


As for FreeRDP_VirtualChannelWriteEx, you need to listen for
CHANNEL_EVENT_WRITE_COMPLETE and free any buffer supplied before there.
(see any of the channels like clipboard using that)


regards

Armin

On 31.08.20 23:09, Jonatan Volkov via FreeRDP-devel wrote:
> Hi all,
>
> I am trying to hunt down an issue where during an RDP session via Apache
> Gaucamole, copying a file from a shared directory/drive to any location on
> the RDP server reserves memory that never gets freed. This leak eventually
> brings down the guac session process after ~3GB have been copied in such a
> way (on a weak machine).
> We are getting this with Guacamole 1.2.0 (over FreeRDP 2.2.0) - was not
> happening with Guacamole 1.0.0 (over FreeRDP 1.1).
>
> Using valgrind we have tracked the problem to the repeated calls to
> FreeRDP_VirtualChannelWriteEx containing chunks of the copied file. The
> arguments include a wStream object that was earlier created via Stream_New.
> It appears, and the valgrind trace supports it, that this wStream instance
> never gets freed by FreeRDP.
>
> I could not find an open issue or discussions on it. Has anyone encountered
> this problem, or in general has any idea regarding the root cause of this
> leak?
> Should we be using the StreamPool from the external code (Guacamole in
> fact) rather than creating a new instance of the stream for each write
> operation?
>
> Thanks! Regards,
> Jonatan
>
> _______________________________________________
> FreeRDP-devel mailing list
> FreeRDP-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freerdp-devel


_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to