summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-10-14 15:37:46 +0100
committerRichard Hughes <richard@hughsie.com>2015-10-14 18:19:57 +0100
commiteea0125121452005611c2e86563feeb48c536dad (patch)
tree243813db2b78e7b3f402433ad45b9658b71d8cad
parentec2d20d94bc2b795f20ba2f66ec96f7522b39230 (diff)
downloadcolord-1-2.tar.gz
libcolord: Fix a tiny memory leak in cd_icc_get_tag_data()colord-1-2
-rw-r--r--lib/colord/cd-icc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/colord/cd-icc.c b/lib/colord/cd-icc.c
index 1eedf9e..f9050f3 100644
--- a/lib/colord/cd-icc.c
+++ b/lib/colord/cd-icc.c
@@ -747,7 +747,7 @@ cd_icc_get_tag_data (CdIcc *icc, const gchar *tag, GError **error)
/* return data */
tmp = g_new0 (gchar, tag_size);
cmsReadRawTag (priv->lcms_profile, sig, tmp, tag_size);
- return g_bytes_new_with_free_func (tmp, tag_size, g_free, NULL);
+ return g_bytes_new_with_free_func (tmp, tag_size, g_free, tmp);
}
/**