]> granicus.if.org Git - file/commitdiff
PR/547: After compilation is done we don't need the data of the map anymore.
authorChristos Zoulas <christos@zoulas.com>
Tue, 17 May 2016 21:43:07 +0000 (21:43 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 17 May 2016 21:43:07 +0000 (21:43 +0000)
src/apprentice.c

index f8956deccee14aadad8e7724be2ed5d4aa0e0331..e395854d0478618c3b0aa17a529d1e6fb231b342 100644 (file)
@@ -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;
 }