projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'dfsg-orig' into dfsg-debian
[debian/tar]
/
gnu
/
rpmatch.c
diff --git
a/gnu/rpmatch.c
b/gnu/rpmatch.c
index d002a03e51f0120ba047b93825891dd508562f1c..04caae20ad55e7563553dc262da0b3206ebe7550 100644
(file)
--- a/
gnu/rpmatch.c
+++ b/
gnu/rpmatch.c
@@
-3,7
+3,7
@@
/* Determine whether string value is affirmation or negative response
according to current locale's data.
/* Determine whether string value is affirmation or negative response
according to current locale's data.
- Copyright (C) 1996, 1998, 2000, 2002-2003, 2006-201
0
Free Software
+ Copyright (C) 1996, 1998, 2000, 2002-2003, 2006-201
4
Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@
-112,7
+112,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;
/* 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;
}
*lastp = safe_pattern;
}