net: Do not leak content from mockups

Be sure content got for mockups are freed to avoid leaks.
net: Pull some leaks