Fix several memory leaks in the Maxwell propagator
Description
This MR fixes several memory leaks in the Maxwell propagator.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.
Closes #466 (closed)