return 1;
} /* }}} */
-int phpdbg_print(int type TSRMLS_DC, const char *format, ...) /* {{{ */
+void phpdbg_print(int type TSRMLS_DC, const char *format, ...) /* {{{ */
{
char *buffer = NULL;
va_list args;
PHPDBG_END_LINE(TSRMLS_D));
break;
}
+
+ if (buffer) {
+ efree(buffer);
+ }
} /* }}} */
NOTICE
};
-int phpdbg_print(int TSRMLS_DC, const char*, ...);
+void phpdbg_print(int TSRMLS_DC, const char*, ...);
#define phpdbg_error(fmt, ...) phpdbg_print(ERROR TSRMLS_CC, fmt, ##__VA_ARGS__)
#define phpdbg_notice(fmt, ...) phpdbg_print(NOTICE TSRMLS_CC, fmt, ##__VA_ARGS__)