summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-07 19:18:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:02 -0500
commit2615b079f04903a80e02334a78961a54f915d063 (patch)
tree009817345d9123340d371754032ad5b4c04aaee6 /source3/passdb
parent71272fc441d7930f7ae810ee3c8f5a58385cb55c (diff)
downloadsamba-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/passdb')
0 files changed, 0 insertions, 0 deletions