5b8ed57 responder-get-domains-tests: fix checking of leaks

1 file Authored by lslebodn 9 years ago, Committed by jhrozek 9 years ago,
    responder-get-domains-tests: fix checking of leaks
    
    global_talloc_context should not be NULL in tests. It should be initialised
    with function leak_check_setup otherwise memory leak will not be detected.
    
    check_leaks_pop should not be directly called for global_talloc_context.
    It is a purpose of function leak_check_teardown
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    (cherry picked from commit bf65fbdd8c3fecd38a66363c3517e7a2679b8186)