projects
/
sip-router
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
memcached: handle error cases and alloc enough for null termination
[sip-router]
/
src
/
modules
/
memcached
/
mcd_var.c
diff --git
a/src/modules/memcached/mcd_var.c
b/src/modules/memcached/mcd_var.c
index
a55f57b
..
442cf21
100644
(file)
--- a/
src/modules/memcached/mcd_var.c
+++ b/
src/modules/memcached/mcd_var.c
@@
-442,6
+442,7
@@
int pv_parse_mcd_name(pv_spec_p sp, str *in) {
if(pv_parse_format(in, &tmp) || tmp==NULL) {
LM_ERR("wrong format [%.*s]\n", in->len, in->s);
+ if(tmp) pkg_free(tmp);
return -1;
}