1fb04bec99
Earlier, at line#275, if ok == 0, it would have triggered a double free of 'rgb'. Change-Id: Iaee1f35824a66f6e4b488e523416f73b87c5ec30 (cherry picked from commit b68912af2c8cefa52bb16634b077938ff074f03a)