Fix bug #66091 (memory leak in DateTime::createFromFormat())#766
Closed
Entea wants to merge 1 commit intophp:masterfrom
Closed
Fix bug #66091 (memory leak in DateTime::createFromFormat())#766Entea wants to merge 1 commit intophp:masterfrom
Entea wants to merge 1 commit intophp:masterfrom
Conversation
Member
|
This looks wrong. It will free the return_value altogether, and not just the data associated with it. Shouldn't it be zval_ptr_dtor() instead? |
Author
|
@derickr Thanks for the review! Does it look good to merge now? :) |
Contributor
|
I've tried your patch on master with the following code: The memory usage keeps going down, becomes negative and then crashes. |
Author
|
@datibbaw thanks for feedback! I've run this test code against patched master and didn't see any memory usage going down. Could you post you |
Contributor
|
@Entea I've managed to reproduce it on two systems now. This is my |
|
This PR has been superseded by #768, which has been merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.