X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnu%2Frpmatch.c;h=b24160472057631fe7982adda7a22849109971bf;hb=HEAD;hp=80dde7c5985c2c86fe1d1da528fd7e98bfb342f6;hpb=bc973a082dddfe8c66baf7352df0433f83479ce1;p=debian%2Ftar diff --git a/gnu/rpmatch.c b/gnu/rpmatch.c index 80dde7c5..b2416047 100644 --- a/gnu/rpmatch.c +++ b/gnu/rpmatch.c @@ -1,9 +1,7 @@ -/* -*- buffer-read-only: t -*- vi: set ro: */ -/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ /* Determine whether string value is affirmation or negative response according to current locale's data. - Copyright (C) 1996, 1998, 2000, 2002-2003, 2006-2011 Free Software + Copyright (C) 1996, 1998, 2000, 2002-2003, 2006-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -112,7 +110,10 @@ try (const char *response, const char *pattern, char **lastp, regex_t *re) return -1; /* Compile the pattern and cache it for future runs. */ if (regcomp (re, safe_pattern, REG_EXTENDED) != 0) - return -1; + { + free (safe_pattern); + return -1; + } *lastp = safe_pattern; }