Permalink
Browse files

Fixed memory leaks

  • Loading branch information...
derickr committed Feb 11, 2019
1 parent 8e8c212 commit b9504e85453a1780985b56a7ff6f27f92f48416d
Showing with 2 additions and 1 deletion.
  1. +1 −1 xdebug_code_coverage.c
  2. +1 −0 xdebug_stack.c
@@ -337,7 +337,7 @@ static char *xdebug_find_var_name(zend_execute_data *execute_data, const zend_op
xdebug_str_addc(&name, '[');
xdebug_str_add_str(&name, zval_value);
xdebug_str_addc(&name, ']');
xdfree(zval_value);
xdebug_str_free(zval_value);
}
}

@@ -784,6 +784,7 @@ void xdebug_error_cb(int type, const char *error_filename, const uint error_line
}
/* the parser would return 1 (failure), we can bail out nicely */
if (type != E_PARSE) {
efree(buffer);
/* restore memory limit */
zend_set_memory_limit(PG(memory_limit));
zend_objects_store_mark_destructed(&EG(objects_store) TSRMLS_CC);

0 comments on commit b9504e8

Please sign in to comment.