m7-common: camera: fix possible memory leak

Change-Id: I23dca14c2565f66f0e6577076c9286e0cf72c71d