Skip to content

Commit

Permalink
Use PyObject_MALLOC and PyObject_FREE instead of malloc()/free().
Browse files Browse the repository at this point in the history
  • Loading branch information
tpn committed Jun 8, 2015
1 parent 8b9942a commit b5eb6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyodbc.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ void* _pyodbc_malloc(const char* filename, int lineno, size_t len);
void pyodbc_free(void* p);
void pyodbc_leak_check();
#else
#define pyodbc_malloc malloc
#define pyodbc_free free
#define pyodbc_malloc PyObject_MALLOC
#define pyodbc_free PyObject_FREE
#endif

void PrintBytes(void* p, size_t len);
Expand Down

0 comments on commit b5eb6df

Please sign in to comment.