summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/gencache.c4
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) {