View | Details | Raw Unified | Return to bug 1212928
Collapse All | Expand All

(-)yajl-2.1.0/src/yajl_tree.c (+6 lines)
Lines 445-450 yajl_val yajl_tree_parse (const char *in Link Here
445
             YA_FREE(&(handle->alloc), internal_err_str);
445
             YA_FREE(&(handle->alloc), internal_err_str);
446
        }
446
        }
447
        yajl_free (handle);
447
        yajl_free (handle);
448
        /*
449
         * If the requested memory is not released in time, it will cause
450
         * memory leakage
451
         */
452
        if(ctx.root)
453
            yajl_tree_free(ctx.root);
448
        return NULL;
454
        return NULL;
449
    }
455
    }
450
456

Return to bug 1212928