The expenses of all prosecutions against persons holding or who may have held any state office, for malfeasance in office, shall be paid from the general fund, by the state treasurer, and the board of state auditors are hereby authorized and empowered to allow all just and legal claims for such prosecutions, and this section shall be deemed to apply to the expenses of any prosecutions already commenced, as well as to any which may occur in the future.