mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
this change was not needed; fclose() handles closing the file descriptor already
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -497,7 +497,6 @@ static void *ast_httpd_helper_thread(void *data)
|
|||||||
free(title);
|
free(title);
|
||||||
}
|
}
|
||||||
fclose(ser->f);
|
fclose(ser->f);
|
||||||
close(ser->fd);
|
|
||||||
free(ser);
|
free(ser);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -539,7 +538,6 @@ static void *http_root(void *data)
|
|||||||
if (ast_pthread_create_background(&launched, &attr, ast_httpd_helper_thread, ser)) {
|
if (ast_pthread_create_background(&launched, &attr, ast_httpd_helper_thread, ser)) {
|
||||||
ast_log(LOG_WARNING, "Unable to launch helper thread: %s\n", strerror(errno));
|
ast_log(LOG_WARNING, "Unable to launch helper thread: %s\n", strerror(errno));
|
||||||
fclose(ser->f);
|
fclose(ser->f);
|
||||||
close(ser->fd);
|
|
||||||
free(ser);
|
free(ser);
|
||||||
}
|
}
|
||||||
pthread_attr_destroy(&attr);
|
pthread_attr_destroy(&attr);
|
||||||
|
Reference in New Issue
Block a user