File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -762,6 +762,7 @@ NetrWkstaUserGetInfo(
762762 if (pUserInfo -> UserInfo0 .wkui0_username == NULL )
763763 {
764764 ERR ("\n" );
765+ midl_user_free (pUserInfo );
765766 dwResult = ERROR_NOT_ENOUGH_MEMORY ;
766767 break ;
767768 }
@@ -792,6 +793,7 @@ NetrWkstaUserGetInfo(
792793 if (pUserInfo -> UserInfo1 .wkui1_username == NULL )
793794 {
794795 ERR ("\n" );
796+ midl_user_free (pUserInfo );
795797 dwResult = ERROR_NOT_ENOUGH_MEMORY ;
796798 break ;
797799 }
@@ -808,6 +810,8 @@ NetrWkstaUserGetInfo(
808810 if (pUserInfo -> UserInfo1 .wkui1_logon_domain == NULL )
809811 {
810812 ERR ("\n" );
813+ midl_user_free (pUserInfo -> UserInfo1 .wkui1_username );
814+ midl_user_free (pUserInfo );
811815 dwResult = ERROR_NOT_ENOUGH_MEMORY ;
812816 break ;
813817 }
@@ -826,6 +830,9 @@ NetrWkstaUserGetInfo(
826830 if (pUserInfo -> UserInfo1 .wkui1_logon_server == NULL )
827831 {
828832 ERR ("\n" );
833+ midl_user_free (pUserInfo -> UserInfo1 .wkui1_username );
834+ midl_user_free (pUserInfo -> UserInfo1 .wkui1_logon_domain );
835+ midl_user_free (pUserInfo );
829836 dwResult = ERROR_NOT_ENOUGH_MEMORY ;
830837 break ;
831838 }
You can’t perform that action at this time.
0 commit comments