William P. Maloney, whose long and varied career included 25 years at Hudson Valley Community College, died May 19 at his home in Brunswick. At the time of his retirement, he served as the first executive director of the college’s foundation that he had helped to establish.