diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-07 19:18:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:11:02 -0500 |
commit | 2615b079f04903a80e02334a78961a54f915d063 (patch) | |
tree | 009817345d9123340d371754032ad5b4c04aaee6 /source3/install-sh | |
parent | 71272fc441d7930f7ae810ee3c8f5a58385cb55c (diff) | |
download | samba-2615b079f04903a80e02334a78961a54f915d063.tar.gz samba-2615b079f04903a80e02334a78961a54f915d063.tar.bz2 samba-2615b079f04903a80e02334a78961a54f915d063.zip |
r13978: Here is why it's essential to use SAFE_FREE instead of free.
If we use free(data.dptr) and then the subsequent tdb_open
fails in _reg_perfcount_get_counter_data() then data.dptr
is left as a non-zero pointer that has been freed. This would
cause it to be reused later on. Coverity bug #162.
Jeremy.
(This used to be commit 053efc20981e0280c6af0ebb9e17cea07da85fe8)
Diffstat (limited to 'source3/install-sh')
0 files changed, 0 insertions, 0 deletions