r16593: Make the invarient explicit to Klocwork. Bug #2023.
authorJeremy Allison <jra@samba.org>
Wed, 28 Jun 2006 01:52:01 +0000 (01:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:02 +0000 (11:19 -0500)
Jeremy.
(This used to be commit 720a9172050beb158a25fbb826676ba19cdcef20)

source3/passdb/passdb.c

index d4e788ff6808ba658308c4385bcd73878a0a15fa..cbb30ead023f9638f168f1b63c47bf9c29cc94a6 100644 (file)
@@ -1329,6 +1329,7 @@ BOOL pdb_copy_sam_account(struct samu *dst, struct samu *src )
 
        len = init_buffer_from_sam_v3(&buf, src, False);
        if (len == -1 || !buf) {
+               SAFE_FREE(buf);
                return False;
        }