Fix memory leak in giflib
@cantonios 
Can you review this please?
Memory leak was discovered in gif library in the part of the code that was patched by me in  #61913. I've forgotten to free color map if it was allocated earlier.