current cgisimple.c,1.139,1.140

Fabian Keil <[email protected]> Sun, 08 May 2016 10:46:20 +0000
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20505

Modified Files:
	cgisimple.c 
Log Message:
cgi_show_client_tags(): Fix theoretical memory leak (CID #161209)


Index: cgisimple.c
===================================================================
RCS file: /cvsroot/ijbswa/current/cgisimple.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -C2 -d -r1.139 -r1.140
*** cgisimple.c	8 May 2016 10:44:39 -0000	1.139
--- cgisimple.c	8 May 2016 10:46:18 -0000	1.140
***************
*** 348,352 ****
     const char *tag_expires;
     time_t time_to_live;
!    char *client_tags = strdup_or_die("");
     char buf[1000];
  
--- 348,352 ----
     const char *tag_expires;
     time_t time_to_live;
!    char *client_tags;
     char buf[1000];
  
***************
*** 386,399 ****
     if (this_tag->name == NULL)
     {
!       if (!err) err = string_append(&client_tags, "<p>No tags available.</p>\n");
     }
     else
     {
!       if (!err)
!       {
!          err = string_append(&client_tags, "<table border=\"1\">\n"
!             "<tr><th>Tag name</th>\n"
!             "<th>Current state</th><th>Change state</th><th>Description</th></tr>\n");
!       }
        while ((this_tag != NULL) && (this_tag->name != NULL))
        {
--- 386,396 ----
     if (this_tag->name == NULL)
     {
!       client_tags = strdup_or_die("<p>No tags available.</p>\n"));
     }
     else
     {
!       client_tags = strdup_or_die("<table border=\"1\">\n"
!          "<tr><th>Tag name</th>\n"
!          "<th>Current state</th><th>Change state</th><th>Description</th></tr>\n");
        while ((this_tag != NULL) && (this_tag->name != NULL))
        {


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z