dtmail: resolve 'deference before null check' errors related to if(!NULL) checks around free() calls

This commit is contained in:
Peter Howkins
2018-04-02 20:29:28 +01:00
parent 8362f92ceb
commit 0b38496bd8
27 changed files with 41 additions and 68 deletions

View File

@@ -382,8 +382,7 @@ MIMEBodyPart::getDtType(DtMailEnv & error)
error.clear();
if (type)
DtDtsFreeDataType(type);
if (mime_type)
free(mime_type);
free(mime_type);
if (name)
free(name);
}
@@ -510,7 +509,6 @@ MIMEBodyPart::loadBody(DtMailEnv & error)
}
}
}
if ( cs )
free ( cs );
if ( from_cs )
free( from_cs );