mirror of https://github.com/MidnightCommander/mc
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…
Reference in New Issue