]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Use TALLOC_FREE() in data_blob_free()
authorVolker Lendecke <vl@samba.org>
Tue, 3 Aug 2021 07:09:05 +0000 (09:09 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 6 Aug 2021 17:22:30 +0000 (17:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/data_blob.c

index 4de645e850ab91fcc038966c5e6ae9293ee37d62..e528eb093a0c33b15ee768489c7ed081a9416e79 100644 (file)
@@ -82,8 +82,7 @@ free a data blob
 _PUBLIC_ void data_blob_free(DATA_BLOB *d)
 {
        if (d) {
-               talloc_free(d->data);
-               d->data = NULL;
+               TALLOC_FREE(d->data);
                d->length = 0;
        }
 }