1
0
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:
Günther Deschner 2007-04-26 12:09:25 +00:00 committed by Gerald (Jerry) Carter
parent 31a193b02a
commit e55c52f654

View File

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