Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
39c475a9
Unverified
Commit
39c475a9
authored
6 years ago
by
Victor M. Alvarez
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak. (#94)
Closes issue #79.
parent
a7327027
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
yara-python.c
yara-python.c
+1
-2
No files found.
yara-python.c
View file @
39c475a9
...
@@ -47,8 +47,7 @@ typedef long Py_hash_t;
...
@@ -47,8 +47,7 @@ typedef long Py_hash_t;
#if PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
#define PY_STRING(x) PyUnicode_FromString(x)
#define PY_STRING(x) PyUnicode_FromString(x)
#define PY_STRING_TO_C(x) PyBytes_AsString(\
#define PY_STRING_TO_C(x) PyUnicode_AsUTF8(x)
PyUnicode_AsEncodedString(x, "utf-8", "strict"))
#define PY_STRING_CHECK(x) PyUnicode_Check(x)
#define PY_STRING_CHECK(x) PyUnicode_Check(x)
#else
#else
#define PY_STRING(x) PyString_FromString(x)
#define PY_STRING(x) PyString_FromString(x)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment