mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-25 04:35:44 +00:00
* variable.c: Clean up some memory leaks.
This commit is contained in:
parent
e97159745d
commit
35047f824a
1 changed files with 2 additions and 1 deletions
|
@ -362,6 +362,7 @@ undefine_variable_in_set (const char *name, unsigned int length,
|
|||
{
|
||||
hash_delete_at (&set->table, var_slot);
|
||||
free_variable_name_and_value (v);
|
||||
free (v);
|
||||
if (set == &global_variable_set)
|
||||
++variable_changenum;
|
||||
}
|
||||
|
@ -1069,7 +1070,7 @@ target_environment (struct file *file)
|
|||
}
|
||||
}
|
||||
|
||||
makelevel_key.name = xstrdup (MAKELEVEL_NAME);
|
||||
makelevel_key.name = (char *)MAKELEVEL_NAME;
|
||||
makelevel_key.length = MAKELEVEL_LENGTH;
|
||||
hash_delete (&table, &makelevel_key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue