Browse Source

release xc_autocheck_done_names even if skipped

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@879 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
416a5ee97f
  1. 8
      processor/struct.m4

8
processor/struct.m4

@ -72,9 +72,9 @@ DECL_STRUCT_P_FUNC(`$1', `$2', 1)
INDENT()fprintf(stderr, "}\n");
')
IFAUTOCHECK(`
/* {{{ autocheck */ if (!xc_autocheck_skip) {
/* {{{ autocheck */
if (!xc_autocheck_skip) {
int name_check_errors = xc_check_names(__FILE__, __LINE__, "FUNC_NAME", xc_autocheck_assert_names, sizeof(xc_autocheck_assert_names) / sizeof(xc_autocheck_assert_names[0]), &xc_autocheck_done_names);
zend_hash_destroy(&xc_autocheck_done_names);
if (xc_autocheck_done_count != assert_count) {
fprintf(stderr
@ -93,7 +93,9 @@ DECL_STRUCT_P_FUNC(`$1', `$2', 1)
if (name_check_errors || xc_autocheck_done_count != assert_count || xc_autocheck_done_size != xc_autocheck_assert_size) {
assert(0);
}
} while (0); /* }}} */
}
zend_hash_destroy(&xc_autocheck_done_names);
/* }}} */
')
ifdef(`ELEMENTSOF_$1', `
pushdef(`ELEMENTS_UNDONE', LIST_DIFF(defn(`ELEMENTSOF_$1'), defn(`ELEMENTS_DONE')))

Loading…
Cancel
Save