mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-22 10:48:08 +00:00
miniupnpc: mem leaks fixes.
This commit is contained in:
parent
02a4050ae8
commit
b55ecd70ef
@ -94,7 +94,7 @@ getHTTPResponse(int s, int * size)
|
||||
return NULL;
|
||||
}
|
||||
content_buf = malloc(content_buf_len);
|
||||
if(header_buf == NULL)
|
||||
if(content_buf == NULL)
|
||||
{
|
||||
free(header_buf);
|
||||
#ifdef DEBUG
|
||||
|
@ -165,6 +165,7 @@ int main(int argc, char * * argv)
|
||||
fprintf(stderr, "Failed to read file %s. %d out of %d bytes.\n",
|
||||
argv[1], r, len);
|
||||
fclose(f);
|
||||
free(buffer);
|
||||
return 1;
|
||||
}
|
||||
fclose(f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user