add freely setoption for EC_idc and UT
Merge pull request #1380 from huili2/ec_option_free

add freely setoption for EC_idc and UT
Merge remote-tracking branch 'upstream/master' into travis.osx