Fix double free

The connection parameters are already freed when the class is deconstructed.