Mercurial > dillo_port1.3
changeset 1706:23fa79dc9664
bookmarks dpi urlstr leak
noticed in Jeremy's valgrind logs
author | corvid <corvid@lavabit.com> |
---|---|
date | Mon, 13 Sep 2010 19:20:16 +0000 |
parents | e247df789bdc |
children | e44231f9c6ca ea58555667ac |
files | dpi/bookmarks.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dpi/bookmarks.c Mon Dec 08 14:46:21 2008 +0000 +++ b/dpi/bookmarks.c Mon Sep 13 19:20:16 2010 +0000 @@ -1628,16 +1628,19 @@ if (strcmp(url, "dpi:/bm/modify") == 0) { st = Bmsrv_send_modify_answer(sh, url); + dFree(url); return st; } else if (strncmp(url, "dpi:/bm/modify?", 15) == 0) { /* process request */ st = Bmsrv_process_modify_request(sh, url); + dFree(url); return st; } d_cmd = a_Dpip_build_cmd("cmd=%s url=%s", "start_send_page", url); + dFree(url); st = a_Dpip_dsh_write_str(sh, 1, d_cmd); dFree(d_cmd); if (st != 0)