The security required of the plaintiff for the issuance of a writ of attachment or of sequestration shall be released when judgment is rendered in his favor and is affirmed on appeal or when no appeal has been taken and the delay for appeal has elapsed.