Update main.c (#241)
Corrected a double free. rpm_data must be updated as in apps/readpropm/main.c.
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ static void MyReadPropertyMultipleAckHandler(uint8_t *service_request,
|
|||||||
if (len < 0) { /* Eg, failed due to no segmentation */
|
if (len < 0) { /* Eg, failed due to no segmentation */
|
||||||
Error_Detected = true;
|
Error_Detected = true;
|
||||||
}
|
}
|
||||||
rpm_data_free(rpm_data);
|
rpm_data = rpm_data_free(rpm_data);
|
||||||
free(rpm_data);
|
free(rpm_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user