Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
012b3f42
Commit
012b3f42
authored
Feb 16, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
YP related cleanup, avoid bad pointer reference on HUP
svn path=/trunk/icecast/; revision=5829
parent
5574d519
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
src/geturl.c
src/geturl.c
+1
-0
src/source.c
src/source.c
+1
-1
src/yp.c
src/yp.c
+3
-0
No files found.
src/geturl.c
View file @
012b3f42
...
...
@@ -134,6 +134,7 @@ void curl_shutdown()
curl_easy_cleanup
(
curl_connections
[
i
].
curl_handle
);
memset
(
&
(
curl_connections
[
i
]),
0
,
sizeof
(
curl_connections
[
i
]));
}
curl_global_cleanup
();
}
int
curl_get_connection
()
{
...
...
src/source.c
View file @
012b3f42
...
...
@@ -344,7 +344,7 @@ void *source_main(void *arg)
if
(
config
->
yp_url
[
i
])
{
source
->
ypdata
[
source
->
num_yp_directories
]
=
yp_create_ypdata
();
source
->
ypdata
[
source
->
num_yp_directories
]
->
yp_url
=
config
->
yp_url
[
i
];
strdup
(
config
->
yp_url
[
i
]
)
;
source
->
ypdata
[
source
->
num_yp_directories
]
->
yp_url_timeout
=
config
->
yp_url_timeout
[
i
];
source
->
ypdata
[
source
->
num_yp_directories
]
->
yp_touch_interval
=
0
;
...
...
src/yp.c
View file @
012b3f42
...
...
@@ -434,6 +434,9 @@ ypdata_t *yp_create_ypdata()
void
yp_destroy_ypdata
(
ypdata_t
*
ypdata
)
{
if
(
ypdata
)
{
if
(
ypdata
->
yp_url
)
{
free
(
ypdata
->
yp_url
);
}
if
(
ypdata
->
sid
)
{
free
(
ypdata
->
sid
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment