@MartinHaimberger totally right I (and the original code) forgot to check the result of rpc_client_new() (which doesn't do a proper cleanup too !)