]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:replace: Fix a posible double free
authorAndreas Schneider <asn@samba.org>
Tue, 27 Apr 2021 13:33:04 +0000 (15:33 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 27 Apr 2021 17:51:36 +0000 (17:51 +0000)
CID 1477397

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Apr 27 17:51:36 UTC 2021 on sn-devel-184

lib/replace/tests/testsuite.c

index d8afa15480b031324cbd988f0fe708e487d6791e..ce344d6549e4c3133fe5f2f7c5e6430d9701d0b5 100644 (file)
@@ -288,7 +288,6 @@ static int test_strndup(void)
        free(x);
        if (cmp != 0) {
                printf("failure: strndup [\ninvalid\n]\n");
-               free(x);
                return false;
        }