mirror of
https://github.com/samba-team/samba.git
synced 2025-02-01 05:47:28 +03:00
r22524: Fix memleak.
Guenther
This commit is contained in:
parent
31a193b02a
commit
e55c52f654
@ -3264,6 +3264,7 @@ WERROR check_published_printers(void)
|
||||
if (!ADS_ERR_OK(ads_rc)) {
|
||||
DEBUG(3, ("ads_connect failed: %s\n", ads_errstr(ads_rc)));
|
||||
ads_destroy(&ads);
|
||||
ads_kdestroy("MEMORY:prtpub_cache");
|
||||
return WERR_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
@ -3280,6 +3281,7 @@ WERROR check_published_printers(void)
|
||||
}
|
||||
|
||||
ads_destroy(&ads);
|
||||
ads_kdestroy("MEMORY:prtpub_cache");
|
||||
return WERR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user