Module: kamailio
Branch: master
Commit: eda03789f693bb72ec4ee05a8b2b4723e5080504
URL: 
https://github.com/kamailio/kamailio/commit/eda03789f693bb72ec4ee05a8b2b4723e5080504

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2024-07-16T08:27:42+02:00

core: remove unnecessary cleanup when locating a module

---

Modified: src/core/sr_module.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/eda03789f693bb72ec4ee05a8b2b4723e5080504.diff
Patch: 
https://github.com/kamailio/kamailio/commit/eda03789f693bb72ec4ee05a8b2b4723e5080504.patch

---

diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index d67e7e44af3..5db20255874 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -535,9 +535,6 @@ int ksr_locate_module(char *mod_path, char **new_path)
        return 0;
 
 error:
-       if(path != NULL && path != mod_path) {
-               pkg_free(path);
-       }
 
        return -1;
 }

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to