Free codes does not work sometimes..You have only limited unlocking attempts..If you put wrong codes many times your mobile get hard locked.So better you purchase the code from your network provider or you may get it from online providers like Superunlockcodes.com .
They will help you to unlock your mobile easily..