git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@978
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
switch (cell->type) {
case xbt_cfgelm_string:
switch (cell->type) {
case xbt_cfgelm_string:
- TRYCLEAN(xbt_cfg_set_string(cfg, name, val),
- xbt_free(optionlist_cpy));
+ errcode = xbt_cfg_set_string(cfg, name, val);
+ if (errcode != no_error) {
+ xbt_free(optionlist_cpy);
+ return errcode;
+ }
break;
case xbt_cfgelm_int:
break;
case xbt_cfgelm_int:
- TRYCLEAN(xbt_cfg_set_int(cfg,name,i),
- xbt_free(optionlist_cpy));
+ errcode = xbt_cfg_set_int(cfg,name,i);
+ if (errcode != no_error) {
+ xbt_free(optionlist_cpy);
+ return errcode;
+ }
break;
case xbt_cfgelm_double:
break;
case xbt_cfgelm_double:
- TRYCLEAN(xbt_cfg_set_double(cfg,name,d),
- xbt_free(optionlist_cpy));
+ errcode = xbt_cfg_set_double(cfg,name,d);
+ if (errcode != no_error) {
+ xbt_free(optionlist_cpy);
+ return errcode;
+ }
break;
case xbt_cfgelm_host:
break;
case xbt_cfgelm_host:
- TRYCLEAN(xbt_cfg_set_host(cfg,name,str,i),
- xbt_free(optionlist_cpy));
+ errcode = xbt_cfg_set_host(cfg,name,str,i);
+ if (errcode != no_error) {
+ xbt_free(optionlist_cpy);
+ return errcode;
+ }