@@ -1115,6 +1115,10 @@
}
} else {
pcre_handle_exec_error(count TSRMLS_CC);
+ if (result) {
+ efree(result);
+ result = NULL;
+ }
break;
}
Nice catch, Tony! But you don't need the if, because result is never NULL (it is assigned only from safe_malloc()).
Nuno
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
