diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-08-06 01:09:04 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-08-15 11:54:12 +0200 |
commit | 22bec83e61ea818c6f29256a0228221168030288 (patch) | |
tree | 92b8f89d3ddff1c880f01950b9bb5592bd572c6c /src/libtracker-extract | |
parent | 2765bd12c12f7929aebb6519e511259833d2c4c9 (diff) | |
download | tracker-22bec83e61ea818c6f29256a0228221168030288.tar.gz |
libtracker-extract: Plug leak
The string would be leaked if we end up with too low confidence from libicu.
Diffstat (limited to 'src/libtracker-extract')
-rw-r--r-- | src/libtracker-extract/tracker-encoding.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtracker-extract/tracker-encoding.c b/src/libtracker-extract/tracker-encoding.c index ac4f97642..fe0b3429f 100644 --- a/src/libtracker-extract/tracker-encoding.c +++ b/src/libtracker-extract/tracker-encoding.c @@ -64,6 +64,7 @@ tracker_encoding_guess (const gchar *buffer, #ifdef HAVE_ENCA if (!encoding || conf < 0.5) { conf = 1; + g_free (encoding); encoding = tracker_encoding_guess_enca (buffer, size); } #endif /* HAVE_ENCA */ |