From: Christos Zoulas Date: Tue, 17 May 2016 21:43:07 +0000 (+0000) Subject: PR/547: After compilation is done we don't need the data of the map anymore. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03b01d7066485113f5d7d819a0b1b8eb1bf63117;p=file PR/547: After compilation is done we don't need the data of the map anymore. --- diff --git a/src/apprentice.c b/src/apprentice.c index f8956dec..e395854d 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: apprentice.c,v 1.248 2016/03/31 17:51:12 christos Exp $") +FILE_RCSID("@(#)$File: apprentice.c,v 1.249 2016/05/17 21:43:07 christos Exp $") #endif /* lint */ #include "magic.h" @@ -3104,6 +3104,7 @@ apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) (void)close(fd); rv = 0; out: + apprentice_unmap(map); free(dbname); return rv; }