From: Christos Zoulas Date: Tue, 9 Mar 2004 18:49:58 +0000 (+0000) Subject: add missing regfree() from Dmitry V. Levin" X-Git-Tag: FILE5_05~898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a02bbca4d0b8578f5e90a5e0b858f82e6fcebc;p=file add missing regfree() from Dmitry V. Levin" --- diff --git a/src/softmagic.c b/src/softmagic.c index 6de903b8..ef37dfdc 100644 --- a/src/softmagic.c +++ b/src/softmagic.c @@ -44,7 +44,7 @@ #ifndef lint -FILE_RCSID("@(#)$Id: softmagic.c,v 1.64 2003/12/31 18:36:22 christos Exp $") +FILE_RCSID("@(#)$Id: softmagic.c,v 1.65 2004/03/09 18:49:58 christos Exp $") #endif /* lint */ private int match(struct magic_set *, struct magic *, uint32_t, @@ -1112,6 +1112,7 @@ mcheck(struct magic_set *ms, union VALUETYPE *p, struct magic *m) return -1; } else { rc = regexec(&rx, p->buf, 0, 0, 0); + regfree(&rx); free(p->buf); return !rc; }