malloc() before strdup() makes no sense
This commit is contained in:
parent
ab9ab0bbab
commit
6f051a105b
|
@ -70,7 +70,6 @@ char* soap_request(char *url, char *body, char *content_type)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
answer = malloc(buf->used);
|
||||
answer = strdup(buf->data);
|
||||
ne_buffer_destroy(buf);
|
||||
|
||||
|
|
Reference in New Issue