Skip to content

Commit

Permalink
fixed memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
argakon committed Oct 18, 2016
1 parent cb35d7b commit 4141a12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mosquitto_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ static void mosquitto_message_object_destroy(zend_object *object TSRMLS_DC)
#else
zend_hash_destroy(message->std.properties);
FREE_HASHTABLE(message->std.properties);

#endif
if (message->owned_topic == 1) {
efree(message->message.topic);
}
Expand All @@ -502,7 +502,6 @@ static void mosquitto_message_object_destroy(zend_object *object TSRMLS_DC)
}

efree(object);
#endif
}

#ifdef ZEND_ENGINE_3
Expand Down

0 comments on commit 4141a12

Please sign in to comment.