aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 07:45:19 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 11:35:16 -0700
commit56e8ac0bd77bea17cf4f751985731607b23e4250 (patch)
treeb548281dfc95b8dc53eac73486ef5a41ba0dd471
parent13a11546500a6ad5c7fa2d45aa0c379db345c43b (diff)
downloadsubsurface-56e8ac0bd77bea17cf4f751985731607b23e4250.tar.gz
Cleanup: free nickname only once
Found by Coverity. Fixes CID 350123 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/parse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/parse.c b/core/parse.c
index 30efcc13c..6205c5afa 100644
--- a/core/parse.c
+++ b/core/parse.c
@@ -33,7 +33,6 @@ void free_parser_state(struct parser_state *state)
free_picture(state->cur_picture);
free((void *)state->cur_extra_data.key);
free((void *)state->cur_extra_data.value);
- free((void *)state->cur_settings.dc.nickname);
free((void *)state->cur_settings.dc.model);
free((void *)state->cur_settings.dc.nickname);
free((void *)state->cur_settings.dc.serial_nr);