dtcm: Coverity 89207

This commit is contained in:
Peter Howkins
2018-07-13 18:27:08 +01:00
parent a0bcb1ebf7
commit 24c4935c08

View File

@@ -108,10 +108,12 @@ _DtCm_rtable_lookup_next_smaller_3_svc(Table_Args_3 *args, struct svc_req *svcrq
if (res!=NULL) xdr_free ((xdrproc_t)_DtCm_xdr_Table_Res_3, (char*)res); res = NULL;
newargs = _DtCm_tableargs3_to_tableargs4(args);
newres = _DtCm_rtable_lookup_next_smaller_4_svc(newargs, svcrq);
res = _DtCm_tableres4_to_tableres3(newres);
if(newargs) {
newres = _DtCm_rtable_lookup_next_smaller_4_svc(newargs, svcrq);
res = _DtCm_tableres4_to_tableres3(newres);
if (newargs!=NULL) xdr_free((xdrproc_t)_DtCm_xdr_Table_Args_4, (char*)newargs);
xdr_free((xdrproc_t)_DtCm_xdr_Table_Args_4, (char*)newargs);
}
return(res);
}