forked from github/server
CID 65491 double free
This commit is contained in:
parent
d48d9a25e0
commit
98856a8e4b
|
@ -51,7 +51,6 @@ int gamedata_openfile(gamedata *data, const char *filename, const char *mode, in
|
||||||
if (err) {
|
if (err) {
|
||||||
log_error("could not open %s: %s", filename, strerror(errno));
|
log_error("could not open %s: %s", filename, strerror(errno));
|
||||||
fclose(F);
|
fclose(F);
|
||||||
free(data);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
storage *store = malloc(sizeof(storage));
|
storage *store = malloc(sizeof(storage));
|
||||||
|
|
Loading…
Reference in New Issue