projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc8ba9a
)
Another regex memory leak...
author
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Fri, 2 May 2014 09:38:14 +0000
(10:38 +0100)
committer
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Fri, 2 May 2014 13:57:57 +0000
(14:57 +0100)
src/lib/valuepair.c
patch
|
blob
|
history
diff --git
a/src/lib/valuepair.c
b/src/lib/valuepair.c
index
28013be
..
5556950
100644
(file)
--- a/
src/lib/valuepair.c
+++ b/
src/lib/valuepair.c
@@
-2787,7
+2787,10
@@
int8_t paircmp(VALUE_PAIR *a, VALUE_PAIR *b)
return -1;
}
- if (!b) return -1;
+ if (!b) {
+ regfree(®);
+ return -1;
+ }
vp_prints_value(buffer, sizeof(buffer), b, 0);