Skip to content

Commit

Permalink
fixed PHP7 segfault caused by efree
Browse files Browse the repository at this point in the history
  • Loading branch information
argakon committed Nov 1, 2016
1 parent ad49281 commit 5dd89a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mosquitto_message.c
Expand Up @@ -501,7 +501,9 @@ static void mosquitto_message_object_destroy(zend_object *object TSRMLS_DC)
efree(message->message.payload);
}

#ifndef ZEND_ENGINE_3
efree(object);
#endif
}

#ifdef ZEND_ENGINE_3
Expand Down

0 comments on commit 5dd89a8

Please sign in to comment.