Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pse2020
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sebastian Schinzel
pse2020
Commits
b4242743
Commit
b4242743
authored
Apr 04, 2020
by
Sebastian Schinzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ein Memory Leak, das durch das Refactoring entstanden ist. Danke an Luca Brüning!
parent
28ad2afd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
echo_server.c
echo_server.c
+3
-0
httplib.c
httplib.c
+2
-0
No files found.
echo_server.c
View file @
b4242743
...
...
@@ -142,6 +142,7 @@ static void main_loop_stdin() {
error
(
"ERROR writing to STDOUT"
);
}
free_str
(
response
);
free
(
buffer
);
}
...
...
@@ -204,6 +205,8 @@ static void main_loop() {
if
(
length
<
0
)
{
error
(
"ERROR writing to socket"
);
}
free_str
(
response
);
/*
* Schließe die Verbindung.
*/
...
...
httplib.c
View file @
b4242743
...
...
@@ -38,6 +38,8 @@ string* cpy_str(const char* src, size_t len) {
}
void
free_str
(
string
*
str
)
{
assert
(
str
!=
NULL
);
assert
(
str
->
str
!=
NULL
);
free
(
str
->
str
);
free
(
str
);
}
...
...
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