osd/erasurecode: Fix memory leak in jerasure_matrix_to_bitmatrix()

Free allocated memory before return because of NULL input

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>