It’s not safe, and you should ensure that you drain the gas tank before store it in trunk or garage to prevent spills that could be a potential fire hazard if you feel the smell of leaking fuel in your trunk so firstly drain the gas tank because it’s also not safe.