Index: /trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp	(revision 50394)
+++ /trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp	(revision 50395)
@@ -4724,5 +4724,4 @@
 {
     HRESULT rc = S_OK;
-    Bstr bstr;
     ComPtr<DHCPServer> found;
 
@@ -4733,4 +4732,5 @@
          ++it)
     {
+        Bstr bstr;
         rc = (*it)->COMGETTER(NetworkName)(bstr.asOutParam());
         if (FAILED(rc)) return rc;
@@ -4887,6 +4887,5 @@
 #ifdef VBOX_WITH_NAT_SERVICE
 
-    HRESULT rc;
-    Bstr bstr;
+    HRESULT rc = S_OK;
     ComPtr<NATNetwork> found;
 
@@ -4897,4 +4896,5 @@
          ++it)
     {
+        Bstr bstr;
         rc = (*it)->COMGETTER(NetworkName)(bstr.asOutParam());
         if (FAILED(rc)) return rc;
