]> arthur.barton.de Git - netatalk.git/commitdiff
Fix, from Anton Starikov
authorFrank Lahm <franklahm@googlemail.com>
Sun, 4 Mar 2012 07:24:02 +0000 (08:24 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Sun, 4 Mar 2012 07:24:02 +0000 (08:24 +0100)
libatalk/util/netatalk_conf.c

index baf17697676d035109fb32d73810bb347d4f8080..5936b2404b1351ab2048a0d6c7f27e86302c97be 100644 (file)
@@ -1367,7 +1367,7 @@ int afp_config_parse(AFPObj *AFPObj)
     options->logfile   = iniparser_getstrdup(config, INISEC_GLOBAL, "logfile",  NULL);
 
     /* [AFP] "options" options wo values */
-    if (p = iniparser_getstrdup(config, INISEC_GLOBAL, "options", NULL)) {
+    if (q = iniparser_getstrdup(config, INISEC_GLOBAL, "options", NULL)) {
         if (p = strtok(q, ", ")) {
             while (p) {
                 if (strcasecmp(p, "nozeroconf"))
@@ -1397,6 +1397,7 @@ int afp_config_parse(AFPObj *AFPObj)
                 p = strtok(NULL, ", ");
             }
         }
+        free(q);
     }
     /* figure out options w values */