mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Setting pointers to NULL after freeing
This commit is contained in:
@@ -175,7 +175,6 @@ mdb_close(MdbHandle *mdb)
|
||||
mdb->f->refs--;
|
||||
if (mdb->f->refs<=0) {
|
||||
mdb_free_file(mdb->f);
|
||||
mdb->f = NULL;
|
||||
}
|
||||
}
|
||||
mdb_free_handle(mdb);
|
||||
|
||||
@@ -59,6 +59,7 @@ mdb_free_props(MdbProperties *props)
|
||||
|
||||
if (props->name) g_free(props->name);
|
||||
g_free(props);
|
||||
props = NULL;
|
||||
}
|
||||
MdbProperties *
|
||||
mdb_alloc_props()
|
||||
|
||||
Reference in New Issue
Block a user