Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsc: Fix memory leak #6320

Merged
merged 1 commit into from
Jun 29, 2020
Merged

Conversation

pnowack
Copy link
Member

@pnowack pnowack commented Jun 26, 2020

Fixes the following memory leak (found with valgrind):

==115716== 16,662,960 bytes in 459 blocks are definitely lost in loss record 3,504 of 3,504
==115716== at 0x48396AF: malloc (vg_replace_malloc.c:306)
==115716== by 0x4C6A4E2: nsc_context_initialize_encode (nsc_encode.c:77)
==115716== by 0x4C6A4E2: nsc_compose_message (nsc_encode.c:497)

I encountered this issue with the NSCodec implementation while working on https://gitlab.gnome.org/pnowack/gnome-remote-desktop/-/blob/initial-rdp-support/src/grd-session-rdp.c#L266)

Fixes the following memory leak:

==115716== 16,662,960 bytes in 459 blocks are definitely lost in loss record 3,504 of 3,504
==115716==    at 0x48396AF: malloc (vg_replace_malloc.c:306)
==115716==    by 0x4C6A4E2: nsc_context_initialize_encode (nsc_encode.c:77)
==115716==    by 0x4C6A4E2: nsc_compose_message (nsc_encode.c:497)
@freerdp-bot
Copy link

Can one of the admins verify this patch?

@akallabeth akallabeth added the consider-for-stable Consider pull request for stable label Jun 29, 2020
@akallabeth akallabeth added this to the next milestone Jun 29, 2020
@akallabeth
Copy link
Member

@freerdp-bot test

@freerdp-bot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://ci.freerdp.com//job/PullRequestTester/5078/

@akallabeth akallabeth merged commit f25fbae into FreeRDP:master Jun 29, 2020
@akallabeth akallabeth mentioned this pull request Jun 29, 2020
@pnowack pnowack deleted the nsc-fix-memory-leak branch June 29, 2020 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consider-for-stable Consider pull request for stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants