[LSASRV]
[reactos.git] / reactos / dll / win32 / lsasrv / lsarpc.c
index 0df15ce..3561252 100644 (file)
@@ -2625,11 +2625,11 @@ done:
 
         if (EncCurrentValue != NULL)
             midl_user_free(EncCurrentValue);
-
-        if (SecretObject != NULL)
-            LsapCloseDbObject(SecretObject);
     }
 
+    if (SecretObject != NULL)
+        LsapCloseDbObject(SecretObject);
+
     return Status;
 }