diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-03 09:47:09 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-03 09:47:09 -0800 |
commit | 75d30b8d700412a26b2e752776c3b3a34ad37693 (patch) | |
tree | 0eae9ad7f786490d2824fbe3e6c01bd83055853a /subsurface-core/uemis-downloader.c | |
parent | f17041e1cb2e708e2968f7c313e7af559132ccc1 (diff) | |
download | subsurface-75d30b8d700412a26b2e752776c3b3a34ad37693.tar.gz |
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>
Diffstat (limited to 'subsurface-core/uemis-downloader.c')
-rw-r--r-- | subsurface-core/uemis-downloader.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-core/uemis-downloader.c b/subsurface-core/uemis-downloader.c index 0f589667b..97ef551aa 100644 --- a/subsurface-core/uemis-downloader.c +++ b/subsurface-core/uemis-downloader.c @@ -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); usleep(timeout); + free(mbuf); mbuf = NULL; mbuf_size = 0; while (searching || assembling_mbuf) { |