1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtcm: Coverity 89341

This commit is contained in:
Peter Howkins 2018-07-13 18:44:12 +01:00
parent c4940d8f78
commit ce9bc0603a

View file

@ -377,11 +377,13 @@ _DtCm_deregister_callback_3_svc(Registration_3 *r, struct svc_req *svcrq)
stat = 0;
newreg = _DtCm_reg3_to_reg4(r);
newstat = _DtCm_deregister_callback_4_svc(newreg, svcrq);
stat = _DtCm_regstat4_to_regstat3(*newstat);
newreg = _DtCm_reg3_to_reg4(r);
if(newreg) {
newstat = _DtCm_deregister_callback_4_svc(newreg, svcrq);
stat = _DtCm_regstat4_to_regstat3(*newstat);
if (newreg!=NULL) xdr_free((xdrproc_t)_DtCm_xdr_Registration_4, (char*)newreg);
xdr_free((xdrproc_t)_DtCm_xdr_Registration_4, (char*)newreg);
}
return(&stat);
}