]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Fix leak
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 20 Mar 2023 02:11:54 +0000 (15:11 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 Mar 2023 18:40:31 +0000 (18:40 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/pac-glue.c

index fc7d657dd429010e2b5224b1ca4ae95301e81abd..b4f447911976220366a1e94574d116fe167f3d5f 100644 (file)
@@ -1725,6 +1725,7 @@ WERROR samba_rodc_confirm_user_is_allowed(uint32_t num_object_sids,
                                          rodc_machine_account->msgs[0],
                                          "objectSid");
        if (rodc_machine_account_sid == NULL) {
+               TALLOC_FREE(frame);
                return WERR_DS_DRA_BAD_DN;
        }