mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fix a leak and a crash.
This commit is contained in:
parent
504d7c2ebd
commit
44afb19d40
1 changed files with 6 additions and 7 deletions
|
@ -564,26 +564,25 @@ int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders, char *m
|
|||
}
|
||||
}
|
||||
|
||||
if (headers_lc) {
|
||||
efree(headers_lc);
|
||||
}
|
||||
if ((res = Post(header_buffer)) != SUCCESS) {
|
||||
efree(header_buffer);
|
||||
if (headers_lc) {
|
||||
efree(headers_lc);
|
||||
}
|
||||
return (res);
|
||||
}
|
||||
efree(header_buffer);
|
||||
|
||||
if ((res = Post("\r\n")) != SUCCESS) {
|
||||
if (headers_lc) {
|
||||
efree(headers_lc);
|
||||
}
|
||||
return (res);
|
||||
}
|
||||
|
||||
return (SUCCESS);
|
||||
|
||||
PostHeader_outofmem:
|
||||
efree(headers_lc);
|
||||
if (headers_lc) {
|
||||
efree(headers_lc);
|
||||
}
|
||||
return OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue