Commit a7636823 authored by Sebastian Schinzel's avatar Sebastian Schinzel

Merge remote-tracking branch 'origin/master'

parents a680faf4 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.
*/
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment