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
507d5843
Commit
507d5843
authored
15 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a couple of out of memory leaks and a segfault in the IMAP code.
parent
dc21a5e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-1
1 addition, 1 deletion
CHANGES
lib/imap.c
+5
-2
5 additions, 2 deletions
lib/imap.c
with
6 additions
and
3 deletions
CHANGES
+
1
−
1
View file @
507d5843
...
...
@@ -7,7 +7,7 @@
Changelog
Daniel Fandrich (25 Feb 2010)
- Fixed a couple of out of memory leaks and a segfault in the SMTP code.
- Fixed a couple of out of memory leaks and a segfault in the SMTP
& IMAP
code.
Yang Tse (25 Feb 2010)
- I fixed bug report #2958074 indicating
...
...
This diff is collapsed.
Click to expand it.
lib/imap.c
+
5
−
2
View file @
507d5843
...
...
@@ -885,11 +885,12 @@ static CURLcode imap_disconnect(struct connectdata *conn)
/* The IMAP session may or may not have been allocated/setup at this
point! */
(
void
)
imap_logout
(
conn
);
/* ignore errors on the LOGOUT */
if
(
imapc
->
pp
.
conn
)
(
void
)
imap_logout
(
conn
);
/* ignore errors on the LOGOUT */
Curl_pp_disconnect
(
&
imapc
->
pp
);
free
(
imapc
->
mailbox
);
Curl_safe
free
(
imapc
->
mailbox
);
return
CURLE_OK
;
}
...
...
@@ -914,6 +915,8 @@ static CURLcode imap_parse_url_path(struct connectdata *conn)
/* url decode the path and use this mailbox */
imapc
->
mailbox
=
curl_easy_unescape
(
data
,
path
,
0
,
&
len
);
if
(
!
imapc
->
mailbox
)
return
CURLE_OUT_OF_MEMORY
;
return
CURLE_OK
;
}
...
...
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