فهرست منبع

minor changes

ambrop7 15 سال پیش
والد
کامیت
bcf7ceb42b
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      server/server.c

+ 5 - 5
server/server.c

@@ -1013,11 +1013,6 @@ void client_dealloc (struct client_data *client)
         client_dealloc_io(client);
     }
     
-    // free common name
-    if (client->common_name) {
-        PORT_Free(client->common_name);
-    }
-    
     // free publishing
     LinkedList2Iterator_Free(&client->publish_it);
     BPending_Free(&client->publish_job);
@@ -1042,6 +1037,11 @@ void client_dealloc (struct client_data *client)
         ASSERT_FORCE(PR_Close(client->ssl_prfd) == PR_SUCCESS)
     }
     
+    // free common name
+    if (client->common_name) {
+        PORT_Free(client->common_name);
+    }
+    
     // free socket
     BSocket_Free(&client->sock);