[LSASRV]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 16 Jul 2016 14:57:33 +0000 (14:57 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 16 Jul 2016 14:57:33 +0000 (14:57 +0000)
Fix cleanup in LsarRetrievePrivateData().
Modified patch by Victor Martinez Calvo.
CORE-11611 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=71952

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;
 }