]> git.marmaro.de Git - mmh/commitdiff
prevent double free of 'ce->cd_file' or later use of invalid data
authorGlenn Burkhardt <glenn@aoi.ultranet.com>
Fri, 27 Jun 2003 17:02:13 +0000 (17:02 +0000)
committerGlenn Burkhardt <glenn@aoi.ultranet.com>
Fri, 27 Jun 2003 17:02:13 +0000 (17:02 +0000)
uip/mhfree.c

index 57518015f9cdb9816c56d0a259b5bb6f9d15a373..c43c5e92421e4210b93602abd778b18ca5f9c770 100644 (file)
@@ -271,6 +271,7 @@ free_encoding (CT ct, int toplevel)
        if (ce->ce_unlink)
            unlink (ce->ce_file);
        free (ce->ce_file);
+       ce->ce_file = NULL;
     }
 
     if (toplevel) {