I carmelize, deglaze with wine, then cook it down again until sufficiently jammy. Then, can in half-pint jars. I don’t think they need to be pressure canned because onions, salt, sugar don’t seem too dangerous, but probably. Anyway, I’ve NEVER thought about freezing them.