When a judgment is rendered for the defendant, upon which execution may issue, or when the action is compromised or dismissed, the attachment made in the action is dissolved thereby.
RSA 511:45
RS 184:30. CS 195:32. GS 205:33. GL 224:33. PS 220:34. PL 332 :45. RL 388:45.