This commit is contained in:
Christian Grothoff committed 2017-02-23 12:20:58 +01:00
1 parent 813fc203ef
commit 0bf22e8553
1 file changed
+5 -3
+5 -3
View File
@@ -595,9 +595,11 @@ MHD_create_response_from_data (size_t size,
must_free = MHD_YES;
data = tmp;
}
response->crc = NULL;
response->crfc = must_free ? &free : NULL;
response->crc_cls = must_free ? data : NULL;
if (must_free)
{
response->crfc = &free;
response->crc_cls = data;
}
response->reference_count = 1;
response->total_size = size;
response->data = data;