Commit 604452f1 604452f107cafe97e3a7b2d0b5147ad128219f89 by Sergey Poznyakoff

(read_rc): Bugfix. linebuf must be freed

no matter was the string accepted or not.
1 parent 50e90b94
...@@ -624,11 +624,11 @@ read_rc (const char *progname, const char *name, const char *capa[], ...@@ -624,11 +624,11 @@ read_rc (const char *progname, const char *name, const char *capa[],
624 x_argv[x_argc++] = n_argv[i]; 624 x_argv[x_argc++] = n_argv[i];
625 625
626 free (n_argv); 626 free (n_argv);
627 }
627 if (linebuf) 628 if (linebuf)
628 free (linebuf); 629 free (linebuf);
629 linebuf = NULL; 630 linebuf = NULL;
630 } 631 }
631 }
632 fclose (fp); 632 fclose (fp);
633 free(rcfile); 633 free(rcfile);
634 634
......