Skip to content

Commit

Permalink
Don't try to free the client_key multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdm committed Mar 13, 2017
1 parent 111945a commit d638ef1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,11 +859,6 @@ static void mosquitto_client_object_destroy(zend_object *object ZO_HANDLE_DC TSR
mosquitto_destroy(client->client);
client->client = NULL;

if (MQTTG(client_key_len) > 0) {
efree(MQTTG(client_key));
MQTTG(client_key) = NULL;
}

PHP_MOSQUITTO_FREE_CALLBACK(client, connect);
PHP_MOSQUITTO_FREE_CALLBACK(client, subscribe);
PHP_MOSQUITTO_FREE_CALLBACK(client, unsubscribe);
Expand Down

0 comments on commit d638ef1

Please sign in to comment.