introduced a free() wrapper to deal with potential double free problems