summaryrefslogtreecommitdiff
path: root/src/apprentice.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-06-26 20:59:11 +0000
committerXin LI <delphij@FreeBSD.org>2016-06-26 20:59:11 +0000
commit581c312f134935d421daea8ff9efe57e66a2beab (patch)
treed4db8d35ebe47a20f97f06e315b4a93cf2f0b6d1 /src/apprentice.c
parent509ff251d4b89e75b87130948ac80361b40c6f79 (diff)
Notes
Diffstat (limited to 'src/apprentice.c')
-rw-r--r--src/apprentice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apprentice.c b/src/apprentice.c
index f8956deccee14..e395854d04786 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;
}