Fixed mixup between empty() and clear() so memory is realesed correctly

Like I said in the other thread. Just releasing unused member field memory in case the command object will be reused later with a new set of parameters. So the memory won't stay occupied in between invocations.