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

fix: Prevent memory leak by return invalid value #2

Closed
wants to merge 1 commit into from

Conversation

Rushaway
Copy link
Member

@Rushaway Rushaway commented May 24, 2024

See review comment in pending.

@Rushaway Rushaway marked this pull request as draft May 24, 2024 10:08
@Rushaway Rushaway marked this pull request as draft May 24, 2024 10:08
@@ -889,6 +889,11 @@ stock Handle json_string_format_ex(int tmpBufferLength, const char[] sFormat, an
stock bool json_array_get_bool(Handle hArray, int iIndex) {
Handle hElement = json_array_get(hArray, iIndex);

if (hElement == INVALID_HANDLE) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rushaway Rushaway closed this Jul 22, 2024
@Rushaway Rushaway deleted the patch-1 branch August 7, 2024 12:28
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.

2 participants