]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: CID 1452289: API usage errors (USE_AFTER_FREE)
authorVolker Lendecke <vl@samba.org>
Wed, 14 Aug 2019 06:39:10 +0000 (08:39 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 14 Aug 2019 07:39:38 +0000 (07:39 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/tiniparser.c

index dbd1c058b0d2faf898cbaba1aba2f018b78c1c5a..428ccff8a6372ff4f2ee48e700cd0ee43c23e271 100644 (file)
@@ -328,7 +328,6 @@ struct tiniparser_dictionary *tiniparser_load_stream(FILE *fp)
 
        d = malloc(sizeof(struct tiniparser_dictionary));
        if (d == NULL) {
-               fclose(fp);
                return NULL;
        }
        d->section_list = NULL;