Skip to content

Commit d19005c

Browse files
committed
Correct preprocessor conditional
1 parent 242c9b1 commit d19005c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mosquitto_mosq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,9 @@ switch_status_t mosq_destroy(mosquitto_connection_t *connection)
13351335
}
13361336
profile = (mosquitto_profile_t *)userdata->profile;
13371337
log(SWITCH_LOG_DEBUG, "mosq_destroy(): profile %s connection %s\n", profile->name, connection->name);
1338+
switch_safe_free(connection->userdata);
13381339
#endif
13391340

1340-
switch_safe_free(connection->userdata);
13411341
mosquitto_destroy(connection->mosq);
13421342
connection->mosq = NULL;
13431343
connection->connected = SWITCH_FALSE;

0 commit comments

Comments
 (0)