From 993ba1ca75f222cd172e40d2aafe931beb0245a6 Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 27 Apr 2005 15:16:28 -0700 Subject: [PATCH] [svn] Free the old value of opt.useragent before setting the new one. --- src/ChangeLog | 5 +++++ src/init.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 6d224fe7..641b0991 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-04-27 Hrvoje Niksic + + * init.c (cmd_spec_useragent): Free the old value of + opt.useragent before setting the new one. + 2005-04-27 Mauro Tortonesi * main.c: Map --ftp-password, --http-password and --proxy-password to diff --git a/src/init.c b/src/init.c index c0bbee52..14f3a87b 100644 --- a/src/init.c +++ b/src/init.c @@ -1258,6 +1258,7 @@ cmd_spec_useragent (const char *com, const char *val, void *place_ignored) exec_name, com, val); return 0; } + xfree_null (opt.useragent); opt.useragent = xstrdup (val); return 1; } -- 2.39.2