mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-02 00:16:04 +03:00
Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function.
Thanks Vit Rosin for the original patch. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b22dd97f7c
commit
4451e07fab
@ -87,6 +87,9 @@ mc_search__hex_translate_to_regex (gchar * str, gsize * len)
|
||||
}
|
||||
loop++;
|
||||
}
|
||||
|
||||
g_free (tmp_str);
|
||||
|
||||
*len = buff->len;
|
||||
return buff;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user