Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
5d5badfc
Commit
5d5badfc
authored
Jan 30, 2018
by
Dmitry Frank
Committed by
Cesanta Bot
Jan 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in big_upload example
PUBLISHED_FROM=e6ccbd73b27985fbf9949adc3e07c90a75f75603
parent
4cf9f99a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
big_upload.c
examples/big_upload/big_upload.c
+1
-0
No files found.
examples/big_upload/big_upload.c
View file @
5d5badfc
...
...
@@ -33,6 +33,7 @@ static void handle_upload(struct mg_connection *nc, int ev, void *p) {
"HTTP/1.1 500 Failed to open a file
\r\n
"
"Content-Length: 0
\r\n\r\n
"
);
nc
->
flags
|=
MG_F_SEND_AND_CLOSE
;
free
(
data
);
return
;
}
nc
->
user_data
=
(
void
*
)
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment