• He Zhenxing's avatar
    Backport BUG#38468 Memory leak detected when using mysqlbinlog utility · bb6953d1
    He Zhenxing authored
    There were two memory leaks in mysqlbinlog command, one was already
    fixed by previous patches, another one was that defaults_argv was
    set to the value of argv after parse_args, in which called
    handle_options after calling load_defaults and changed the value
    of argv, and caused the memory allocated for defaults arguments
    not freed.
    
    Fixed the problem by setting defaults_argv right after calling
    load_defaults.
    bb6953d1
mysqlbinlog.cc 68.2 KB