dthelp: more coverity fixes
This commit is contained in:
@@ -483,7 +483,7 @@ char *partype(n)
|
||||
void srefout(M_NOPAR)
|
||||
{
|
||||
LOGICAL first = TRUE ;
|
||||
int *mapbysref ;
|
||||
int *mapbysref = NULL;
|
||||
SREFSTRUCT *srefp ;
|
||||
SREFDATA *data ;
|
||||
int count = 0 ;
|
||||
@@ -544,6 +544,7 @@ void srefout(M_NOPAR)
|
||||
fputs(ndif, dtd) ;
|
||||
}
|
||||
SUBONE
|
||||
free(mapbysref);
|
||||
}
|
||||
|
||||
/* Output one element block in a template */
|
||||
|
||||
@@ -424,8 +424,9 @@ if (loading) newdlm = (char **) calloc(trysize, sizeof(M_WCHAR *));
|
||||
if (! newtransit || (loading && ! newdlm))
|
||||
{
|
||||
trysize = NUMDELIM + 1;
|
||||
free(newtransit);
|
||||
newtransit = (int *) calloc(NUMCON * trysize, sizeof(int));
|
||||
if (loading) newdlm = (char **) calloc(trysize, sizeof(M_WCHAR *));
|
||||
if (loading) { free(newdlm); newdlm = (char **) calloc(trysize, sizeof(M_WCHAR *)); }
|
||||
}
|
||||
if (! newtransit || (loading && ! newdlm))
|
||||
{
|
||||
|
||||
@@ -144,6 +144,7 @@ void copyfile(pfile1,pfile2)
|
||||
ret = system(pcmd);
|
||||
ret = snprintf(pcmd, slen, "touch %s",pfile2);
|
||||
ret = system(pcmd);
|
||||
free(pcmd);
|
||||
}
|
||||
|
||||
int nextchar(file, data)
|
||||
|
||||
Reference in New Issue
Block a user