Module: kamailio
Branch: master
Commit: 4753296c012f9eb90188a4313fb8f797b3f14010
URL:
https://github.com/kamailio/kamailio/commit/4753296c012f9eb90188a4313fb8f79…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-04-21T17:43:25Z
topoh: improve mem error handling
---
Modified: src/modules/topoh/topoh_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4753296c012f9eb90188a4313fb8f79…
Patch:
https://github.com/kamailio/kamailio/commit/4753296c012f9eb90188a4313fb8f79…
---
diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c
index c1b2dc51e93..c508b16f6a1 100644
--- a/src/modules/topoh/topoh_mod.c
+++ b/src/modules/topoh/topoh_mod.c
@@ -219,6 +219,7 @@ static int mod_init(void)
th_uri_prefix.s = (char*)pkg_malloc(th_uri_prefix.len+1);
if(th_uri_prefix.s==NULL)
{
+ pkg_free(th_via_prefix.s);
PKG_MEM_ERROR_FMT("uri prefix parameter\n");
goto error;
}