From 98856a8e4b497edd11953db399c6af6dc243c413 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 13 Feb 2016 20:51:28 +0100 Subject: [PATCH] CID 65491 double free --- src/util/gamedata.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/gamedata.c b/src/util/gamedata.c index 242c5e717..4dc334cc8 100644 --- a/src/util/gamedata.c +++ b/src/util/gamedata.c @@ -51,7 +51,6 @@ int gamedata_openfile(gamedata *data, const char *filename, const char *mode, in if (err) { log_error("could not open %s: %s", filename, strerror(errno)); fclose(F); - free(data); } else { storage *store = malloc(sizeof(storage));