ffprotocol: fix memory leak in get_signature