]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3386 --resolve please try this
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jun 2011 23:59:29 +0000 (18:59 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Jun 2011 23:59:35 +0000 (18:59 -0500)
src/switch_ivr_async.c

index 8d01e117628cc87962475f2d842d7d989bc3109b..d8b67e7706aab40f75c63eea315737b75d55c033 100644 (file)
@@ -97,11 +97,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_dmachine_create(switch_ivr_dmachine_t
                                                                                                                   switch_ivr_dmachine_callback_t nonmatch_callback,
                                                                                                                   void *user_data)
 {
-       switch_byte_t my_pool = !!pool;
+       switch_byte_t my_pool = 0;
        switch_ivr_dmachine_t *dmachine;
 
        if (!pool) {
                switch_core_new_memory_pool(&pool);
+               my_pool = 1;
        }
 
        dmachine = switch_core_alloc(pool, sizeof(*dmachine));