mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 11:40:25 +01:00
progs/vp: Fix memory leak in vp-tris.c.
This commit is contained in:
parent
9553a42f63
commit
760cf71572
1 changed files with 2 additions and 0 deletions
|
|
@ -99,9 +99,11 @@ static void Init( void )
|
|||
sz = (GLuint) fread(buf, 1, sizeof(buf), f);
|
||||
if (!feof(f)) {
|
||||
fprintf(stderr, "file too long\n");
|
||||
fclose(f);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
fprintf(stderr, "%.*s\n", sz, buf);
|
||||
|
||||
if (strncmp( buf, "!!VP", 4 ) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue