Cleanup

The function free_rs frees the allocated resources, if the caller is the last user of the decoder.

/* Release resources */
free_rs(rs_decoder);