Eliminated spammy log messages from backtrace functions
@@ -260,10 +260,7 @@ USHORT RtlCaptureStackBackTrace(ULONG FramesToSkip, ULONG FramesToCapture, PVOID
void winpr_backtrace_free(void* buffer)
{
if (!buffer)
- {
- LOGF(support_msg);
return;
- }
#if defined(HAVE_EXECINFO_H)
t_execinfo* data = (t_execinfo*)buffer;
@@ -517,8 +514,7 @@ void winpr_log_backtrace_ex(wLog* log, DWORD level, DWORD size)
if (!stack)
{
WLog_Print(log, WLOG_ERROR, "winpr_backtrace failed!\n");
- winpr_backtrace_free(stack);
- return;
+ goto fail;
}
msg = winpr_backtrace_symbols(stack, &used);
@@ -530,6 +526,7 @@ void winpr_log_backtrace_ex(wLog* log, DWORD level, DWORD size)
}
free(msg);
+fail:
winpr_backtrace_free(stack);
}
