mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-02 04:02:18 +03:00
fix
This commit is contained in:
1 parent
cb9bcba074
commit
0cd701236a
3 files changed
+4
No files matched your search
@@ -161,6 +161,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version)
|
||||
if (NULL == (mem_test_file_local = malloc (len)))
|
||||
{
|
||||
fprintf (stderr, MHD_E_MEM);
|
||||
free (doc_path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -160,6 +160,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version,
|
||||
{
|
||||
fprintf (stderr, "Error: failed to read test file. %s\n",
|
||||
strerror (errno));
|
||||
free (mem_test_file_local);
|
||||
free (doc_path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -183,6 +183,7 @@ test_https_transfer (FILE * test_fd, char *cipher_suite, int proto_version)
|
||||
{
|
||||
fprintf (stderr, "Error: failed to read test file. %s\n",
|
||||
strerror (errno));
|
||||
free (mem_test_file_local);
|
||||
free (doc_path);
|
||||
return -1;
|
||||
}
|
||||
@@ -190,6 +191,7 @@ test_https_transfer (FILE * test_fd, char *cipher_suite, int proto_version)
|
||||
if (NULL == (cbc.buf = malloc (sizeof (char) * len)))
|
||||
{
|
||||
fprintf (stderr, MHD_E_MEM);
|
||||
free (mem_test_file_local);
|
||||
free (doc_path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user