mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
datatrak.c: Do not duplicate string as it's not being freed
It is cloned later by add_cloned_cylinder(), anyway. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
This commit is contained in:
parent
c9c38394c0
commit
080a7f1a17
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ static char *cyl_type_by_size(int size)
|
||||||
if (ti == tank_info + MAX_TANK_INFO)
|
if (ti == tank_info + MAX_TANK_INFO)
|
||||||
return "";
|
return "";
|
||||||
else
|
else
|
||||||
return copy_string(ti->name);
|
return ti->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue