add putenv double-free regression test