When the property is delivered to the magistrate, he must, if it was stolen or embezzled, deliver it to the owner on satisfactory proof of his title, and on his paying the necessary expenses incurred in its preservation, to be certified by the magistrate. If it were taken on a warrant issued on the grounds stated in the second and third subdivisions of the second section of this article, he must retain it in his possession, subject to the order of the court to which he is required to return the proceedings before him, or of any other court in which the offense, in respect to which the property was taken, is triable.
R.L.1910, § 6070.