Tweak to cleanup
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 9 Jun 2003 02:43:24 +0000 (02:43 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 9 Jun 2003 02:43:24 +0000 (02:43 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@484 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-target/shibrpc-server.cpp

index 2cd636b..63aa3f6 100644 (file)
@@ -297,19 +297,19 @@ shibrpc_new_session_1_svc(shibrpc_new_session_args_1 *argp,
 
   // Cache this session with the cookie
   g_shibTargetCCache->insert(cookie, as, argp->client_addr);
-
+  
   // Delete the response...
   delete r;
 
   // Delete the origin...
-  delete origin;
+  XMLString::release(&origin);
 
   // And let the user know.
-  free (result->cookie);
+  if (result->cookie) free(result->cookie);
   result->cookie = strdup(cookie);
   set_rpc_status(&result->status, SHIBRPC_OK, NULL, NULL);
 
-  log.debug ("new session id: %s", cookie);
+  log.debug("new session id: %s", cookie);
   return TRUE;
 }