dthelp: more coverity fixes

This commit is contained in:
Peter Howkins
2018-04-11 02:07:55 +01:00
parent f4e3cb8327
commit 10468068ac
9 changed files with 14 additions and 7 deletions

View File

@@ -1610,6 +1610,7 @@ else
{
strcpy(pCharset, charset);
mb_free(&charset);
free(charset);
}
else
strcpy(pCharset, isoString);
@@ -2809,7 +2810,7 @@ int tryleng = sizeof(pathbuf);
int pathleng;
int fileleng;
SEARCH *thispath;
char *mb_inputname;
char *mb_inputname = NULL;
M_WCHAR *wc_try, *wc_outputname;
int tossfile;
char filebuf[BIGBUF];
@@ -2876,6 +2877,8 @@ else
}
if (try != pathbuf) mb_free(&try);
mb_free(&mb_inputname);
}
/* Below is a modified version of m_cyclent() that returns a pointer

View File

@@ -155,6 +155,7 @@ strcpy(helpext, ".xrh");
tex = fopen(helpbase, "w");
fprintf(tex, "\\gobble\001%s\002%%\n", m_signon);
fputs("% Generated Cross-Reference Macros (for a particular document)\n", tex);
fclose(tex);
if (! xtree.data) return;
n = 0;