Avoid a pair of double free()'s!
h/t Shin-ichi for reporting two of these warning: pointer 'unc_buff' used after 'free' [-Wuse-after-free]
This commit is contained in:
parent
9199174dca
commit
d073d41eed
1 changed files with 0 additions and 2 deletions
|
|
@ -27525,7 +27525,6 @@ void load_embedded_data(char *fname, SDL_Surface * org_surf)
|
||||||
|
|
||||||
draw_tux_text(TUX_OOPS, strerror(errno), 0);
|
draw_tux_text(TUX_OOPS, strerror(errno), 0);
|
||||||
|
|
||||||
free(unc_buff);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SDL_LockSurface(aux_surf);
|
SDL_LockSurface(aux_surf);
|
||||||
|
|
@ -27586,7 +27585,6 @@ void load_embedded_data(char *fname, SDL_Surface * org_surf)
|
||||||
|
|
||||||
draw_tux_text(TUX_OOPS, strerror(errno), 0);
|
draw_tux_text(TUX_OOPS, strerror(errno), 0);
|
||||||
|
|
||||||
free(unc_buff);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue