* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
&realnum)) != CSA_SUCCESS)
return (stat);
- if (checkattrnum == B_TRUE && realnum == 0)
+ if (checkattrnum == B_TRUE && realnum == 0) {
+ free(hattrs);
return (CSA_E_INVALID_PARAMETER);
+ }
stat = _DtCm_check_hashed_cal_attributes(fvers, hnum, hattrs,
NULL, cname, checkreadonly, firsttime, B_TRUE);
&realnum)) != CSA_SUCCESS)
return (stat);
- if (checkattrnum == B_TRUE && realnum == 0)
+ if (checkattrnum == B_TRUE && realnum == 0) {
+ free(hattrs);
return (CSA_E_INVALID_PARAMETER);
+ }
stat = _DtCm_check_hashed_cal_attributes(fvers, hnum, hattrs,
owner, cname, checkreadonly, firsttime, B_FALSE);
&realnum)) != CSA_SUCCESS)
return (stat);
- if (checkattrnum == B_TRUE && realnum == 0)
+ if (checkattrnum == B_TRUE && realnum == 0) {
+ free(hattrs);
return (CSA_E_INVALID_PARAMETER);
+ }
stat = _DtCm_check_hashed_entry_attributes(fvers, hnum, hattrs,
utype);
&realnum)) != CSA_SUCCESS)
return (stat);
- if (checkattrnum == B_TRUE && realnum == 0)
+ if (checkattrnum == B_TRUE && realnum == 0) {
+ free(hattrs);
return (CSA_E_INVALID_PARAMETER);
+ }
stat = _DtCm_check_hashed_entry_attributes(fvers, hnum, hattrs,
utype);
nptr = alist->next;
if (alist->user) {
- if (alist->user->user_name)
+ if (alist->user->user_name) {
free(alist->user->user_name);
- if (alist->user->calendar_address);
+ }
+ if (alist->user->calendar_address) {
free(alist->user->calendar_address);
+ }
free(alist->user);
}
cms_attribute **hattrs,
uint *num)
{
- CSA_return_code stat;
int i, j, index, count = 0;
cms_attribute *nattrs;
char *name;
cms_attribute **hattrs,
uint *num)
{
- CSA_return_code stat;
int i, j, index, count = 0;
cms_attribute *nattrs;
char *name;
CSA_return_code stat;
char *ptr, *optr;
char user[BUFSIZ];
- int res;
boolean_t isuser;
if (val->type != CSA_VALUE_STRING)