[xiph-cvs] cvs commit: icecast/src cfgfile.c

Karl Heyes karl at xiph.org
Mon Nov 17 16:49:59 PST 2003



karl        03/11/17 19:49:59

  Modified:    src      cfgfile.c
  Log:
  fix minor leak on config file read

Revision  Changes    Path
1.2       +2 -0      icecast/src/cfgfile.c

Index: cfgfile.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/cfgfile.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- cfgfile.c	21 Jul 2003 01:39:39 -0000	1.1
+++ cfgfile.c	18 Nov 2003 00:49:59 -0000	1.2
@@ -361,9 +361,11 @@
         } else if (strcmp(node->name, "master-server-port") == 0) {
             tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
             configuration->master_server_port = atoi(tmp);
+            xmlFree (tmp);
         } else if (strcmp(node->name, "master-update-interval") == 0) {
             tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
             configuration->master_update_interval = atoi(tmp);
+            xmlFree (tmp);
         } else if (strcmp(node->name, "limits") == 0) {
             _parse_limits(doc, node->xmlChildrenNode, configuration);
         } else if (strcmp(node->name, "relay") == 0) {

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list