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:
Andrew Borodin 2010-02-17 13:47:28 +00:00
parent b22dd97f7c
commit 4451e07fab
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ mc_search__hex_translate_to_regex (gchar * str, gsize * len)
}
loop++;
}
g_free (tmp_str);
*len = buff->len;
return buff;
}