1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r16367: Missed one, Klocwork #915.

Jeremy.
(This used to be commit b581fee982)
This commit is contained in:
Jeremy Allison 2006-06-19 21:42:07 +00:00 committed by Gerald (Jerry) Carter
parent d5b6dedfdd
commit 1b64f06048

View File

@ -3112,6 +3112,10 @@ static WERROR nt_printer_unpublish_ads(ADS_STRUCT *ads,
if (ADS_ERR_OK(ads_rc) && ads_count_replies(ads, res)) {
prt_dn = ads_get_dn(ads, res);
if (!prt_dn) {
ads_msgfree(ads, res);
return WERR_NOMEM;
}
ads_rc = ads_del_dn(ads, prt_dn);
ads_memfree(ads, prt_dn);
}