Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed PHP-691: Memory leak during master failover

MongoCollection->update() & remove() do not have this problem
  • Loading branch information...
commit ccdf0303e594c66626118b42447a716e94c21a33 1 parent f687fd2
Hannes Magnusson bjori authored derickr committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  collection.c
1  collection.c
View
@@ -642,6 +642,7 @@ PHP_METHOD(MongoCollection, insert) {
PHP_MONGO_GET_COLLECTION(getThis());
if ((connection = get_server(c, MONGO_CON_FLAG_WRITE TSRMLS_CC)) == 0) {
+ zval_ptr_dtor(&options);
RETURN_FALSE;
}
Please sign in to comment.
Something went wrong with that request. Please try again.