Ported from Arduino Library : https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050

Dependents:   kopija_NUCLEO_CELL_LOCKER_copy

Fork of MPU6050 by Simon Garfieldsg

Revision:
1:1e0baaf91e96
Parent:
0:662207e34fba
Child:
2:e2081d9de7af
diff -r 662207e34fba -r 1e0baaf91e96 I2Cdev.cpp
--- a/I2Cdev.cpp	Fri Jan 11 00:54:28 2013 +0000
+++ b/I2Cdev.cpp	Wed May 08 00:34:55 2013 +0000
@@ -137,6 +137,7 @@
     for(int i =0; i < length; i++) {
         data[i] = redData[i];
     }
+    free (redData);
     return length;
 }