mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:59:29 +02:00
* fixed (real)modulename memory leak when changing the module name
git-svn-id: trunk@21954 -
This commit is contained in:
parent
0a1157da38
commit
ba4b08261c
@ -965,6 +965,8 @@ implementation
|
||||
|
||||
procedure tmodule.setmodulename(const s:string);
|
||||
begin
|
||||
stringdispose(modulename);
|
||||
stringdispose(realmodulename);
|
||||
modulename:=stringdup(upper(s));
|
||||
realmodulename:=stringdup(s);
|
||||
{ also update asmlibrary names }
|
||||
|
Loading…
Reference in New Issue
Block a user