mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
src/screen.c: fix memleak in remove_encoding_from_path
This commit is contained in:
parent
e8f71d0db8
commit
b0a0a8f17b
@ -912,6 +912,7 @@ remove_encoding_from_path (const char *path)
|
|||||||
g_string_set_size(tmp_conv,0);
|
g_string_set_size(tmp_conv,0);
|
||||||
}
|
}
|
||||||
g_string_set_size(tmp_path,tmp - tmp_path->str);
|
g_string_set_size(tmp_path,tmp - tmp_path->str);
|
||||||
|
str_close_conv (converter);
|
||||||
}
|
}
|
||||||
g_string_prepend(ret, tmp_path->str);
|
g_string_prepend(ret, tmp_path->str);
|
||||||
g_string_free(tmp_path,TRUE);
|
g_string_free(tmp_path,TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user