projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a195bdc
)
Fix memory leak pointed out by coverity.
author
Tatsuo Ishii
<ishii@sraoss.co.jp>
Wed, 22 May 2019 06:15:37 +0000
(15:15 +0900)
committer
Tatsuo Ishii
<ishii@sraoss.co.jp>
Wed, 22 May 2019 06:17:06 +0000
(15:17 +0900)
src/utils/regex_array.c
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/regex_array.c
b/src/utils/regex_array.c
index bbb4bc1a9406e65be31d0fd301c22439812371b0..d8f675e396973d9b975d803151fad5d58f83c3cc 100644
(file)
--- a/
src/utils/regex_array.c
+++ b/
src/utils/regex_array.c
@@
-207,6
+207,7
@@
void extract_string_tokens2(char *str, char *delimi, char delimi2, Left_right_to
if (i == len -1)
{
pfree(mystr);
+ pfree(weight_token);
return;
}
@@
-227,6
+228,7
@@
void extract_string_tokens2(char *str, char *delimi, char delimi2, Left_right_to
lrtokens->token[lrtokens->pos].left_token = left_token;
lrtokens->token[lrtokens->pos].right_token = right_token;
lrtokens->pos++;
+ pfree(weight_token);
}
pfree(mystr);
}