remote.c: remove useless if-before-free test