Update mongoose.c

when having connections with and without auth would cause double free and then crash