# HG changeset patch # User nicodvb # Date 1208601271 0 # Node ID 090b808c421ba70cec7067b822b35416ad87363d # Parent eea1e72ea1ddec200f298ae1f67f1c6b698deb9d in remap_loadmap() free map before exiting in case of failure ; patch by Erik Hovland - erik hovland org diff -r eea1e72ea1dd -r 090b808c421b remap.c --- a/remap.c Sat Apr 19 10:27:37 2008 +0000 +++ b/remap.c Sat Apr 19 10:34:31 2008 +0000 @@ -229,7 +229,10 @@ } } - if (map->nblocks == 0 && map->debug == 0) return NULL; + if (map->nblocks == 0 && map->debug == 0) { + free(map); + return NULL; + } return map; }