Update main.c (#241)

Corrected a double free. rpm_data must be updated as in apps/readpropm/main.c.
This commit is contained in:
gducerf
2022-03-14 22:24:48 +01:00
committed by GitHub
parent 7239b0e362
commit 0963f65fc5
+1 -1
View File
@@ -300,7 +300,7 @@ static void MyReadPropertyMultipleAckHandler(uint8_t *service_request,
if (len < 0) { /* Eg, failed due to no segmentation */
Error_Detected = true;
}
rpm_data_free(rpm_data);
rpm_data = rpm_data_free(rpm_data);
free(rpm_data);
}
}