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 5751801..c43c5e9 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) {