diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-02-08 14:53:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-02-08 14:58:06 +0000 |
| commit | ea5586e8fb1967ee4ed83b7c2ffff92333ca7cb9 (patch) | |
| tree | 9c06b568cc925a9f076adf6918c40a79afef2963 /src | |
| parent | bddbad4fe4ed78ed2665a64d1125d77a0b54de98 (diff) | |
Fix use-after-free (although in quickmail code which I don't think is called).
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/quickmail.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/quickmail.cc b/src/lib/quickmail.cc index 5d1c4ab1a..8d62e02c9 100644 --- a/src/lib/quickmail.cc +++ b/src/lib/quickmail.cc @@ -488,6 +488,7 @@ char* quickmail_get_body (quickmail mailobj) do { if ((p = (char*)realloc(result, resultlen + BODY_BUFFER_SIZE)) == NULL) { free(result); + result = NULL; DEBUG_ERROR(ERRMSG_MEMORY_ALLOCATION_ERROR) break; } |
