dtinfo: fix coverity issues related to null checks after dereference
This commit is contained in:
@@ -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