diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2020-08-29 09:17:38 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-03 11:38:13 -0700 |
commit | 080a7f1a177ddb9cb7163d230039bbdf7f973f9a (patch) | |
tree | cae4977d858dd28fe5bd3921f7fa6b2be4e6be8e /core | |
parent | c9c38394c094ac897c3c5359e38a04496ebd74df (diff) | |
download | subsurface-080a7f1a177ddb9cb7163d230039bbdf7f973f9a.tar.gz |
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>
Diffstat (limited to 'core')
-rw-r--r-- | core/datatrak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/datatrak.c b/core/datatrak.c index b6e32a56d..34e9bda5b 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -137,7 +137,7 @@ static char *cyl_type_by_size(int size) if (ti == tank_info + MAX_TANK_INFO) return ""; else - return copy_string(ti->name); + return ti->name; } /* |