X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.c;h=ad78c0b40f205066ead2527ceda94a3587fb64e9;hp=b3b555ed78dcb1d33543979ddf900a480303f98c;hb=3ef3a6b2acadc5546328a4d96e584dc4f7215af5;hpb=111ccdc319c9f80ef4350b4b07408144a5684229 diff --git a/src/ttrss.c b/src/ttrss.c index b3b555e..ad78c0b 100644 --- a/src/ttrss.c +++ b/src/ttrss.c @@ -67,7 +67,7 @@ static void file_set_content(const char *path, const char *content) } } -static char *content_get_path(const struct headline *h) +static gchar *content_get_path(const struct headline *h) { const char *cache_dir; @@ -91,7 +91,7 @@ static int is_content_cached(const struct headline *h) else result = 1; - free(path); + g_free(path); return result; } @@ -111,7 +111,7 @@ char *ttrss_get_headline_content(struct headline *h) file_set_content(path, content); } - free(path); + g_free(path); return content; }