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
a140e531
Commit
a140e531
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
moved the protocol-specific free to allow easier multiple transfers
parent
7686ac3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/ftp.c
+0
-3
0 additions, 3 deletions
lib/ftp.c
lib/http.c
+0
-3
0 additions, 3 deletions
lib/http.c
lib/url.c
+11
-1
11 additions, 1 deletion
lib/url.c
with
11 additions
and
7 deletions
lib/ftp.c
+
0
−
3
View file @
a140e531
...
...
@@ -545,9 +545,6 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
}
}
free
(
ftp
);
data
->
proto
.
ftp
=
NULL
;
/* it is gone */
return
CURLE_OK
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/http.c
+
0
−
3
View file @
a140e531
...
...
@@ -375,9 +375,6 @@ CURLcode Curl_http_done(struct connectdata *conn)
*
bytecount
=
http
->
readbytecount
+
http
->
writebytecount
;
}
free
(
http
);
data
->
proto
.
http
=
NULL
;
/* it is gone */
return
CURLE_OK
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/url.c
+
11
−
1
View file @
a140e531
...
...
@@ -561,6 +561,10 @@ CURLcode curl_disconnect(CURLconnect *c_connect)
struct
UrlData
*
data
=
conn
->
data
;
if
(
data
->
proto
.
generic
)
free
(
data
->
proto
.
generic
);
data
->
proto
.
generic
=
NULL
;
/* it is gone */
#ifdef ENABLE_IPV6
if
(
conn
->
res
)
/* host name info */
freeaddrinfo
(
conn
->
res
);
...
...
@@ -1644,7 +1648,13 @@ CURLcode curl_do(CURLconnect *in_conn)
if
(
!
conn
||
(
conn
->
handle
!=
STRUCT_CONNECT
))
{
return
CURLE_BAD_FUNCTION_ARGUMENT
;
}
if
(
conn
->
state
!=
CONN_INIT
)
{
switch
(
conn
->
state
)
{
case
CONN_INIT
:
case
CONN_DONE
:
/* these two states are OK */
break
;
default:
/* anything else is bad */
return
CURLE_BAD_CALLING_ORDER
;
}
...
...
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