Commit 2c3dc75e authored by Juergen Kosel's avatar Juergen Kosel

Move the evaluation of the not freed memory _after_ call of MQTTAsync_destroy()

Signed-off-by: 's avatarJuergen Kosel <juergen.kosel@softing.com>
parent dfe40601
......@@ -338,10 +338,14 @@ int test_373(struct Options options)
#if !defined(_WINDOWS)
mqtt_mem = Heap_get_info();
MyLog(LOGA_INFO, "MQTT mem current %ld, max %ld",mqtt_mem->current_size,mqtt_mem->max_size);
if (mqtt_mem->current_size > 0) failures++; /* consider any not freed memory as failure */
#endif
exit:
MQTTAsync_destroy(&mqttasyncContext);
#if !defined(_WINDOWS)
mqtt_mem = Heap_get_info();
MyLog(LOGA_INFO, "MQTT mem current %ld, max %ld",mqtt_mem->current_size,mqtt_mem->max_size);
if (mqtt_mem->current_size > 0) failures++; /* consider any not freed memory as failure */
#endif
return failures;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment