An open API service indexing awesome lists of open source software.

https://github.com/bast/cffi-mem-alloc-example

Demo of how to create or fix a memory leak when garbage collecting.
https://github.com/bast/cffi-mem-alloc-example

cffi cpp memory-management python

Last synced: about 2 months ago
JSON representation

Demo of how to create or fix a memory leak when garbage collecting.

Awesome Lists containing this project

README

          

![](../master/img/terminator.jpg "the garbage collector attempts to reclaim space occupied by objects which are no longer in use")

# Client-side or library-side memory allocation with [Python CFFI](https://cffi.readthedocs.io)?

Client side is more general but we also wish a Pythonic API.
Check out [test.py](../master/test.py).

## How to build and run the example

```
mkdir build
cd build
cmake ..
make
cd ..
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
EXAMPLE_BUILD_DIR=build python test.py
```