m7-common: camera: fix possible memory leak

Change-Id: I2692bb71d4a0c798cba5999d0de009c20e5438bb