Fixes global leak in save function

A global leak was caused by a missing comma (,) in the save function.
Merge pull request #158 from Resonance1584/patch-1

Fixes global leak in save function