• He Zhenxing's avatar
    Backport BUG#38468 Memory leak detected when using mysqlbinlog utility · 4354cfd4
    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.
    4354cfd4
mysqlbinlog.cc 68.2 KB