Also free the pointer returned by readline().
This commit is contained in:
parent
9e55426d72
commit
d36da1948a
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
$Id: conf.c,v 1.9.4.25 2000/11/29 14:27:24 zarq Exp $
|
$Id: conf.c,v 1.9.4.26 2000/11/29 14:30:07 zarq Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -252,8 +252,10 @@ cp
|
||||||
cfg->which = hazahaza[i].which;
|
cfg->which = hazahaza[i].which;
|
||||||
if(!config)
|
if(!config)
|
||||||
config = cfg;
|
config = cfg;
|
||||||
|
free(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(line);
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
cp
|
cp
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Reference in a new issue