.cpp -> cc
Support bad param error, free decoded data