• Wen Hui's avatar
    fix leak in error handling of debug populate command (#7062) · 4238df54
    Wen Hui authored
    valsize was not modified during the for loop below instead of getting from c->argv[4], therefore there is no need to put inside the for loop.. Moreover, putting the check outside loop will also avoid memory leaking, decrRefCount(key) should be called in the original code if we put the check in for loop
    
    (cherry picked from commit c69a9b2f)
    4238df54
debug.c 67.1 KB