mirror of https://github.com/MidnightCommander/mc
Direct commit: Fixed double memory free in input histoey list.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
3415416be8
commit
63c0f34dce
|
@ -250,8 +250,8 @@ push_history (WInput * in, const char *text)
|
|||
in->history = list_append_unique (in->history, t);
|
||||
in->history_changed = TRUE;
|
||||
}
|
||||
|
||||
g_free (t);
|
||||
else
|
||||
g_free (t);
|
||||
|
||||
in->need_push = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue