We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 168ea11 commit 5725f91Copy full SHA for 5725f91
1 file changed
source/v5/mqtt5_options_storage.c
@@ -3730,8 +3730,10 @@ void aws_mqtt5_client_options_storage_destroy(struct aws_mqtt5_client_options_st
3730
aws_tls_connection_options_clean_up(&options_storage->tls_options);
3731
aws_http_proxy_config_destroy(options_storage->http_proxy_config);
3732
3733
- aws_mqtt5_packet_connect_storage_clean_up(options_storage->connect);
3734
- aws_mem_release(options_storage->connect->allocator, options_storage->connect);
+ if (options_storage->connect != NULL) {
+ aws_mqtt5_packet_connect_storage_clean_up(options_storage->connect);
3735
+ aws_mem_release(options_storage->connect->allocator, options_storage->connect);
3736
+ }
3737
3738
aws_mem_release(options_storage->allocator, options_storage);
3739
}
0 commit comments