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

Dependents:   mpu6050_test testI2C Hobby_Humanoid_controlor mpu6050_test ... more

Revision:
1:1e0baaf91e96
Parent:
0:662207e34fba
--- 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;
 }