The following patch to wget 1.13.4-2ubuntu1.4 eliminates most of the
leaks, except the one in CRYPTO_malloc which may be due to a memory
leak in the opensll library.
diff -r wget-1.13.4/src/http.c wget-1.13.4-jbk/src/http.c
2288c2288
< if (tmp)
---
> if (tmp) {
2289a2290,2291
> free(tmp);
> }
diff -r wget-1.13.4/src/retr.c wget-1.13.4-jbk/src/retr.c
291a292
> free(line);
293a295
> char *line = fd_read_line(fd);
295c297
< if (fd_read_line (fd) == NULL)
---
> if (line == NULL)
296a299,300
> else
> free(line);
355,359c359,368
< if (fd_read_line (fd) == NULL)
< {
< ret = -1;
< break;
< }
---
> {
> char *line = fd_read_line(fd);
> if (line == NULL)
> {
> ret = -1;
> break;
> }
> else
> xfree(line);
> }
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1291373
Title:
wget. memory leaks
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wget/+bug/1291373/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs