dtsession/SrvFile_io: fix CID's 88299 and 89441
This commit is contained in:
@@ -228,9 +228,7 @@ char *palette)
|
|||||||
DEFAULT_PALETTE);
|
DEFAULT_PALETTE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path != NULL)
|
|
||||||
SRV_FREE(path);
|
SRV_FREE(path);
|
||||||
if (palettePath != NULL)
|
|
||||||
SRV_FREE(palettePath);
|
SRV_FREE(palettePath);
|
||||||
|
|
||||||
return (paletteDef);
|
return (paletteDef);
|
||||||
@@ -372,6 +370,7 @@ ReadPaletteFile(
|
|||||||
error_value = 1;
|
error_value = 1;
|
||||||
unlink(palettePath);
|
unlink(palettePath);
|
||||||
SRV_FREE(fullPath);
|
SRV_FREE(fullPath);
|
||||||
|
close(fd);
|
||||||
return((struct _palette *) NULL);
|
return((struct _palette *) NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user