current cgisimple.c,1.149,1.150

Fabian Keil <[email protected]> Mon, 29 May 2017 10:13:38 +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-serv28760

Modified Files:
	cgisimple.c 
Log Message:
cgi_show_client_tags(): Fix a harmless 'dead store' warning


Index: cgisimple.c
===================================================================
RCS file: /cvsroot/ijbswa/current/cgisimple.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -C2 -d -r1.149 -r1.150
*** cgisimple.c	4 May 2017 14:33:17 -0000	1.149
--- cgisimple.c	29 May 2017 10:13:36 -0000	1.150
***************
*** 392,401 ****
           if (err)
           {
!             free_map(exports);
!             return JB_ERR_MEMORY;
           }
           this_tag = this_tag->next;
        }
        if (!err) err = string_append(&client_tag_status, "</table>\n");
     }
     refresh_delay = get_next_tag_timeout_for_client(csp->client_address);
--- 392,405 ----
           if (err)
           {
!             break;
           }
           this_tag = this_tag->next;
        }
        if (!err) err = string_append(&client_tag_status, "</table>\n");
+       if (err)
+       {
+          free_map(exports);
+          return JB_ERR_MEMORY;
+       }
     }
     refresh_delay = get_next_tag_timeout_for_client(csp->client_address);


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot