diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-04 08:46:34 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-09-05 09:16:22 -0700 |
commit | f630360b7ff07ffd2a22f16d50293949860418ca (patch) | |
tree | 86faf66c8c3f89b3fdb085a4d75d68770c6d8600 /source3/lib | |
parent | aaa6a688cfc44ca681098a8ee66551689e8894a9 (diff) | |
download | samba-f630360b7ff07ffd2a22f16d50293949860418ca.tar.gz samba-f630360b7ff07ffd2a22f16d50293949860418ca.tar.bz2 samba-f630360b7ff07ffd2a22f16d50293949860418ca.zip |
gencache: Fix SAFE_FREE vs data_blob_free
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/gencache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index 7d89c7d05a..0d5d9e8815 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -715,12 +715,12 @@ bool gencache_get(const char *keystr, char **value, time_t *ptimeout) return false; } if ((blob.data == NULL) || (blob.length == 0)) { - SAFE_FREE(blob.data); + data_blob_free(&blob); return false; } if (blob.data[blob.length-1] != '\0') { /* Not NULL terminated, can't be a string */ - SAFE_FREE(blob.data); + data_blob_free(&blob); return false; } if (value) { |