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

Free the newly allocated string, not the local buffer #1192

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

KJ4ERJ
Copy link

@KJ4ERJ KJ4ERJ commented Jun 22, 2017

This code only happens when the newly formatted string is larger than the size of the local buffer (1024 bytes). I uncovered the issue when I did a very long print from lua code.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

8 similar comments
@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@moai-sdk
Copy link

Can one of the admins verify this patch? Type 'test' in a comment to start test.

@seclorum
Copy link
Contributor

seclorum commented Jul 2, 2017

test

@seclorum
Copy link
Contributor

This is a clear fix.

@seclorum seclorum merged commit 6604b53 into moai:feature/community-1.8 Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants