mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Uemis downloader: don't leak memory
Don't just clear out the buffer pointer, free the memory, first. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f17041e1cb
commit
75d30b8d70
1 changed files with 1 additions and 0 deletions
|
@ -516,6 +516,7 @@ static bool uemis_get_answer(const char *path, char *request, int n_param_in,
|
||||||
}
|
}
|
||||||
trigger_response(reqtxt_file, "n", filenr, file_length);
|
trigger_response(reqtxt_file, "n", filenr, file_length);
|
||||||
usleep(timeout);
|
usleep(timeout);
|
||||||
|
free(mbuf);
|
||||||
mbuf = NULL;
|
mbuf = NULL;
|
||||||
mbuf_size = 0;
|
mbuf_size = 0;
|
||||||
while (searching || assembling_mbuf) {
|
while (searching || assembling_mbuf) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue