lidtsvc: coverity fixes

This commit is contained in:
Peter Howkins
2018-04-12 01:38:02 +01:00
parent 91bb9a037a
commit 691dffb076
17 changed files with 52 additions and 20 deletions

View File

@@ -484,6 +484,7 @@ dndFileContentsToSelectionValue(
buf = (void *)XtMalloc(bufLen + 1);
bytesRead = read(fd, buf, bufLen);
close(fd);
if (bytesRead == -1 || bytesRead != bufLen) {
XtFree((char *)buf);