mm-video: vdec: avoid closing same fd twice

When freeing the buffer, same fd is being close twice which
might result into crash if some other program start using the fd
and we will end up closing a fd used by some other thread or
program.
this change will avoid closing the same fd twice.

Change-Id: I037358a4a1e02a2cc6c52740ae44bbc8f080dc4c
1 file changed