font: Fix a small resource leak in a failure case in rfbLoadConsoleFont()

The file handle wouldn't be closed in this instance.
pull/3/head
Lioncash 7 years ago
parent c80879ee69
commit c550e1ac69

@ -174,6 +174,7 @@ rfbFontDataPtr rfbLoadConsoleFont(char *filename)
if(1!=fread(p->data,4096,1,f)) {
free(p->data);
free(p);
fclose(f);
return NULL;
}
fclose(f);

Loading…
Cancel
Save