I've had a mallard in the past and, even though she would sometimes fly 9ut of the fenced area, she never went far.
I think it's really only something to worry about if you have multiple mallards or if something really frightens her.
You can always trim her flight feathers, too. Done properly...