[xiph-commits] r14032 - icecast/trunk/icecast/src
karl at svn.xiph.org
karl at svn.xiph.org
Sun Oct 21 19:52:16 PDT 2007
Author: karl
Date: 2007-10-21 19:52:16 -0700 (Sun, 21 Oct 2007)
New Revision: 14032
Modified:
icecast/trunk/icecast/src/auth_url.c
Log:
minor memory leak on resource failure case
Modified: icecast/trunk/icecast/src/auth_url.c
===================================================================
--- icecast/trunk/icecast/src/auth_url.c 2007-10-22 02:29:49 UTC (rev 14031)
+++ icecast/trunk/icecast/src/auth_url.c 2007-10-22 02:52:16 UTC (rev 14032)
@@ -98,6 +98,7 @@
INFO0 ("Doing auth URL cleanup");
url = self->state;
+ self->state = NULL
curl_easy_cleanup (url->handle);
free (url->username);
free (url->password);
@@ -478,6 +479,7 @@
authenticator->stream_end = url_stream_end;
url_info = calloc(1, sizeof(auth_url));
+ authenticator->state = url_info;
url_info->auth_header = strdup ("icecast-auth-user: 1\r\n");
url_info->timelimit_header = strdup ("icecast-auth-timelimit:");
@@ -535,7 +537,6 @@
snprintf (url_info->userpwd, len, "%s:%s", url_info->username, url_info->password);
}
- authenticator->state = url_info;
INFO0("URL based authentication setup");
return 0;
}
More information about the commits
mailing list