A generalized q-difference analogue of the lemma on the logarithmic derivative is introduced, which is an improvement of previous result due to Korhonen, and was applied to the growth of meromorphic solutions of some linear difference equations. Examples are given to illustrate the sharpness of the results.