-/*
- * $Id: wildfire.c 6962 2009-01-18 19:33:45Z dothebart $
- */
-
/*@{*/
#include "sysdep.h"
#endif
#include "libcitadel.h"
-
+#include "libcitadellocal.h"
ConstStr WF_MsgStrs[] = {
pche = strchr(pch, ':');
FlushStrBuf(FileName);
StrBufAppendBufPlain(FileName, pch, pche - pch, 0);
- pche++;
- *FunctionLine = atoi(pche);
-
+ if (pche != NULL)
+ {
+ pche++;
+ *FunctionLine = atoi(pche);
+ }
+ else
+ *FunctionLine = 0;
return 1;
}
long BaseFrames = 0;
StrBuf *FullBinaryName = NULL;
+void WildFireShutdown(void)
+{
+ close(addr2line_write_pipe[0]);
+ close(addr2line_read_pipe[0]);
+
+ FreeStrBuf(&FullBinaryName);
+}
+
void WildFireInitBacktrace(const char *argvNull, int AddBaseFrameSkip)
{
if (OutBuf == NULL) {
FreeStrBuf(&Header);
}
+ FreeStrBuf(&N);
+ FreeStrBuf(&Buf);
+ FreeStrBuf(&HeaderName);
}