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 5 years ago
parent c80879ee69
commit c550e1ac69
  1. 1
      libvncserver/font.c

@ -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