Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cannot free this string here.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 12 Sep 2013 11:52:29 +0000 (13:52 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 13 Sep 2013 15:16:01 +0000 (17:16 +0200)
src/xbt/config.c

index 835fd0e..cf6c778 100644 (file)
@@ -657,7 +657,7 @@ void xbt_cfg_set_parse(xbt_cfg_t cfg, const char *options) {
 
     val = strchr(name, ':');
     if (!val) {
-      free(optionlist_cpy);
+      /* don't free(optionlist_cpy) here, 'name' points inside it */
       xbt_die("Option '%s' badly formated. Should be of the form 'name:value'",
               name);
     }