commented out ->free which fails when using mysqli