diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
commit | 8d7758dd62f7214e095f94b6a1d0000d4f153e55 (patch) | |
tree | 091e29e1330577b1656ee8ee01b658b0166c3ee3 | |
parent | 55bd260ecd93b968691f433556c6cb805e0a4760 (diff) |
Fix a small memory leak
-rw-r--r-- | src/init1.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init1.cc b/src/init1.cc index 1975dc3f..654d0ce5 100644 --- a/src/init1.cc +++ b/src/init1.cc @@ -3085,7 +3085,7 @@ errr init_s_info_txt(FILE *fp) expand_to_fit_index(s_info, i); /* Copy name */ - s_ptr->name = my_strdup(s); + s_ptr->name = s; /* Next... */ continue; |