]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6442 --resolve
authorWilliam King <william.king@quentustech.com>
Tue, 8 Apr 2014 17:36:20 +0000 (10:36 -0700)
committerWilliam King <william.king@quentustech.com>
Tue, 8 Apr 2014 17:36:36 +0000 (10:36 -0700)
src/mod/applications/mod_dptools/mod_dptools.c

index 6dabb403b66dd6c5f0fd3be25454bed869419754..5007689f86c89e021cb8d1b6ae557d21379f6197 100644 (file)
@@ -32,6 +32,7 @@
  * Cesar Cepeda <cesar@auronix.com>
  * Christopher M. Rienzo <chris@rienzo.com>
  * Seven Du <dujinfang@gmail.com>
+ * William King <william.king@quentustech.com>
  *
  * mod_dptools.c -- Raw Audio File Streaming Application Module
  *
@@ -3545,7 +3546,8 @@ static switch_status_t pickup_event_handler(switch_core_session_t *session)
        switch_channel_t *channel = switch_core_session_get_channel(session);
        switch_channel_state_t state = switch_channel_get_running_state(channel);
        pickup_pvt_t *tech_pvt = switch_core_session_get_private(session);
-       
+       char *uuid = NULL;
+
        switch(state) {
        case CS_DESTROY:
                if (tech_pvt->vars) {
@@ -3569,7 +3571,8 @@ static switch_status_t pickup_event_handler(switch_core_session_t *session)
                                switch_channel_clear_flag(channel, CF_CHANNEL_SWAP);
                        }
 
-                       pickup_pop_uuid(tech_pvt->key, switch_core_session_get_uuid(session));
+                       uuid = pickup_pop_uuid(tech_pvt->key, switch_core_session_get_uuid(session));
+                       switch_safe_free(uuid);
                }
                break;
        default: