-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parameter passing of describe patterns
When ffi.new() is used to build a new pointer object, the returned pointer object has ownership on the allocated memory. When it is garbage-collected, then the memory is freed. Thus, we need to make sure the original object survives its use, otherwise the casted pointer will point to garbage. This fixes one test which was failing with the latest CFFI version, see issue #694. Thus, this commit also reverts 803b1cb (cffi 1.10 not yet supported, 2017-03-22) where the latest CFFI version was marked as unsupported. Signed-off-by: Lukas Fleischer <lfleischer@lfos.de>
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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