commit | a8ad8ddc987c2c50c69ec070ed7e7e62500f34a5 | [log] [tgz] |
---|---|---|
author | Erwan Velu <erwan.velu@enovance.com> | Thu Feb 19 13:04:08 2015 +0100 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:17 2015 -0800 |
tree | e927950f28acf142a2e674f5e666480e5a31100b | |
parent | a03739bc3b3f014d336efe3e653cea669f608948 [diff] |
iolog: Don't leak memory if fread fails in iolog_file_inflate If fread fails in iolog_file_inflate(), the current code was closing the file descriptor and return 1. But it was missing freeing the previously malloced buffer (buf). This patch does add a memory free of 'buf' before returning to avoid the memory leak.