[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Dangling info->lfilename

From: Gisle Vanem
Subject: [Bug-wget] Dangling info->lfilename
Date: Tue, 17 Jun 2014 11:10:11 +0200

Hello Giuseppe.

You patch to mswindows.c at

@@ -123,7 +123,7 @@ struct fake_fork_info
HANDLE event;
bool logfile_changed;
- char lfilename[MAX_PATH + 1];
+ char *lfilename;

Causes a dangling pointer after use. I.e.
 info->lfilename = strdup (opt.lfilename);

seems never to be freed. We should call free() *before*
'info' gets unmapped or revert that change.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]