diff options
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 778d96ba..c9faed96 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2738,10 +2738,7 @@ _cmd_index(const Command* cmd) } g_strfreev(tokens); - char* res = index->str; - g_string_free(index, FALSE); - - return res; + return g_string_free(index, FALSE); } GList* |