Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
b0828322
Commit
b0828322
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
added calls to curl_global_*, they aren't really needed for this application
but it shows good manner to always cleanup
parent
1e5e0f9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.c
+4
-2
4 additions, 2 deletions
src/main.c
with
4 additions
and
2 deletions
src/main.c
+
4
−
2
View file @
b0828322
...
...
@@ -179,6 +179,7 @@ static CURLcode win32_init(void) { return CURLE_OK; }
*/
CURLcode
main_init
(
void
)
{
curl_global_init
();
return
win32_init
();
}
...
...
@@ -189,6 +190,7 @@ CURLcode main_init(void)
void
main_free
(
void
)
{
win32_cleanup
();
curl_global_cleanup
();
}
int
SetHTTPrequest
(
HttpReq
req
,
HttpReq
*
store
)
...
...
@@ -1458,7 +1460,7 @@ operate(struct Configurable *config, int argc, char *argv[])
curl_memdebug
(
"memdump"
);
#endif
main_init
();
/* inits
winsock crap for windows
*/
main_init
();
/* inits */
config
->
showerror
=
TRUE
;
config
->
conf
=
CONF_DEFAULT
;
...
...
@@ -1901,7 +1903,7 @@ operate(struct Configurable *config, int argc, char *argv[])
/* cleanup the curl handle! */
curl_easy_cleanup
(
curl
);
main_free
();
/* cleanup
the winsock stuff for windows
*/
main_free
();
/* cleanup */
return
res
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment