(read_rc): Bugfix. linebuf must be freed
no matter was the string accepted or not.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment