]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9198 [mod_skinny] fix small memory leaks
authornneul at mst.edu <nneul@mst.edu>
Wed, 25 May 2016 15:40:28 +0000 (10:40 -0500)
committernneul at mst.edu <nneul@mst.edu>
Wed, 25 May 2016 15:40:28 +0000 (10:40 -0500)
src/mod/endpoints/mod_skinny/skinny_server.c

index ad635ab2e2043348e9cccb23ec3b8603601e4cf3..47d4647750b02502c7085bc3fbd39bbd283510f1 100644 (file)
@@ -1246,27 +1246,27 @@ switch_status_t skinny_handle_register(listener_t *listener, skinny_message_t *r
                                        listener->soft_key_set_set = switch_core_strdup(profile->pool, value);
                                } else if (!strcasecmp(name, "ext-voicemail")) {
                                        if (!listener->ext_voicemail || strcmp(value,listener->ext_voicemail)) {
-                                               listener->ext_voicemail = switch_core_strdup(profile->pool, value);
+                                               listener->ext_voicemail = switch_core_strdup(listener->pool, value);
                                        }
                                } else if (!strcasecmp(name, "ext-redial")) {
                                        if (!listener->ext_redial || strcmp(value,listener->ext_redial)) {
-                                               listener->ext_redial = switch_core_strdup(profile->pool, value);
+                                               listener->ext_redial = switch_core_strdup(listener->pool, value);
                                        }
                                } else if (!strcasecmp(name, "ext-meetme")) {
                                        if (!listener->ext_meetme || strcmp(value,listener->ext_meetme)) {
-                                               listener->ext_meetme = switch_core_strdup(profile->pool, value);
+                                               listener->ext_meetme = switch_core_strdup(listener->pool, value);
                                        }
                                } else if (!strcasecmp(name, "ext-pickup")) {
                                        if (!listener->ext_pickup || strcmp(value,listener->ext_pickup)) {
-                                               listener->ext_pickup = switch_core_strdup(profile->pool, value);
+                                               listener->ext_pickup = switch_core_strdup(listener->pool, value);
                                        }
                                } else if (!strcasecmp(name, "ext-cfwdall")) {
                                        if (!listener->ext_cfwdall || strcmp(value,listener->ext_cfwdall)) {
-                                               listener->ext_cfwdall = switch_core_strdup(profile->pool, value);
+                                               listener->ext_cfwdall = switch_core_strdup(listener->pool, value);
                                        }
                                } else if (!strcasecmp(name, "ext-autodial")) {
                                        if (!listener->ext_autodial || strcmp(value,listener->ext_autodial)) {
-                                               listener->ext_autodial = switch_core_strdup(profile->pool, value);
+                                               listener->ext_autodial = switch_core_strdup(listener->pool, value);
                                        }
                                }
                        }