Module: kamailio
Branch: master
Commit: 9c7a509f7189de8ce600a97b7c1c5f9e4f5afdb1
URL:
https://github.com/kamailio/kamailio/commit/9c7a509f7189de8ce600a97b7c1c5f9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-08T11:25:05+02:00
tm: t_fifo.c - free app in case of error
---
Modified: src/modules/tm/t_fifo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9c7a509f7189de8ce600a97b7c1c5f9…
Patch:
https://github.com/kamailio/kamailio/commit/9c7a509f7189de8ce600a97b7c1c5f9…
---
diff --git a/src/modules/tm/t_fifo.c b/src/modules/tm/t_fifo.c
index cd3bb296ab..ea4e96b99a 100644
--- a/src/modules/tm/t_fifo.c
+++ b/src/modules/tm/t_fifo.c
@@ -214,6 +214,7 @@ int parse_tw_append( modparam_t type, void* val)
app->name.s = (char*)pkg_malloc( foo.len+1 );
if (app->name.s==0) {
PKG_MEM_ERROR;
+ pkg_free(app);
goto error;
}
memcpy( app->name.s, foo.s, foo.len);