Fix memory leak in watch_main_source_file_lossage.
gdb/ChangeLog: * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
This commit is contained in:
parent
aff0895837
commit
98387a2917
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2014-11-18 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
|
* buildsym.c (watch_main_source_file_lossage): Fix memory leak.
|
||||||
|
|
||||||
2014-11-18 Doug Evans <xdje42@gmail.com>
|
2014-11-18 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
* cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
|
* cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
|
||||||
|
|
|
@ -989,6 +989,8 @@ watch_main_source_file_lossage (void)
|
||||||
subfiles = mainsub_alias->next;
|
subfiles = mainsub_alias->next;
|
||||||
else
|
else
|
||||||
prev_mainsub_alias->next = mainsub_alias->next;
|
prev_mainsub_alias->next = mainsub_alias->next;
|
||||||
|
xfree (mainsub_alias->name);
|
||||||
|
xfree (mainsub_alias->dirname);
|
||||||
xfree (mainsub_alias);
|
xfree (mainsub_alias);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue