fix jansson leaks