Private
Public Access
2
0

python/mraa.i: Fix memory leak on python Spi::write and I2c::write

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-07-02 19:17:53 +01:00
parent 4698d18fa1
commit c5b0d7a1d1

View File

@@ -49,6 +49,7 @@ class I2c;
{
// need to loop over length
$result = PyByteArray_FromStringAndSize((char*) $1, arg2);
free($1);
}
class Spi;
@@ -56,6 +57,7 @@ class Spi;
{
// need to loop over length
$result = PyByteArray_FromStringAndSize((char*) $1, arg3);
free($1);
}
}