fix: possible invalid free()
fix: use uninitialized value (usage_buf)