an insect whose eggs or larvae cause galls when deposited in plant stems, or one which lays its eggs in galls produced by other insects
See gallfly in American Heritage Dictionary 4
noun
Any of various small insects, such as the gall midge or gall wasp, that deposit their eggs on plant stems or in the bark of trees, causing the formation of galls in which their larvae grow.