Throw exception, if group name or peer id are empty
ecalloc, do not need null check
Fix memory leak