dtinfo: fix coverity issues related to null checks after dereference
This commit is contained in:
@@ -77,7 +77,7 @@ AusText::~AusText()
|
||||
{
|
||||
store->deActivateZone ( f_base );
|
||||
|
||||
if ( store ) { delete store; }
|
||||
delete store;
|
||||
if ( f_search_store ) { delete f_search_store; }
|
||||
}
|
||||
|
||||
|
||||
@@ -828,8 +828,7 @@ makeAbsPathEnv(char *var)
|
||||
snprintf(newVar, pathlen, "%s=%s", var, newPath);
|
||||
putenv(newVar);
|
||||
|
||||
if (newPath)
|
||||
XtFree(newPath);
|
||||
XtFree(newPath);
|
||||
|
||||
return newVar;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user