client/common: fix Remote Assistance memory leaks