Fixes global leak in save function

A global leak was caused by a missing comma (,) in the save function.