You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
migrated from Bugzilla #470258
status RESOLVED severity normal in component Mosquitto for 1.5
Reported in version unspecified on platform PC
Assigned to: Roger Light
In mqtt3_db_message_store, source_id, topic and payload are all newly-allocated and copied.
Since topic allocated in mqtt3_handle_publish is not used after mqtt3_db_message_store returned, we can get rid of once of unnecessary payload copy for better performance.
no_memory:
_mosquitto_log_printf(NULL, MOSQ_LOG_ERR, "Error: Out of memory.");
if (new_source_id) {
_mosquitto_free(new_source_id);
}
if (new_topic) {
_mosquitto_free(new_topic);
}
if (new_payload) {
_mosquitto_free(new_payload);
}
if (temp) {
_mosquitto_free(temp);
}
return MOSQ_ERR_NOMEM;
}
migrated from Bugzilla #470258
status RESOLVED severity normal in component Mosquitto for 1.5
Reported in version unspecified on platform PC
Assigned to: Roger Light
On 2015-06-16 05:58:08 -0400, Yun Wu wrote:
On 2015-06-28 17:28:05 -0400, Roger Light wrote:
The text was updated successfully, but these errors were encountered: