Merge pull request #178 from lioncash/leak

font: Fix a small resource leak in a failure case in rfbLoadConsoleFont()
pull/3/head
Christian Beier 8 years ago committed by GitHub
commit 9485359451

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