Compare commits

...

2 Commits

Author SHA1 Message Date
Matthias Clasen
c7221fcc49 ci: More verbose output from asan 2022-12-19 23:36:19 -05:00
Matthias Clasen
af6ac99153 Fix a leak in the jpeg loader
Found by asan in ci.
2022-12-19 23:32:59 -05:00
2 changed files with 2 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ builddir=$1
backend=$2
# Ignore memory leaks lower in dependencies
export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp:print_suppressions=0
export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp:print_suppressions=0:verbosity=1:log_threads=1
export G_SLICE=always-malloc
case "${backend}" in

View File

@@ -307,6 +307,7 @@ gdk_save_jpeg (GdkTexture *texture)
g_object_unref (memtex);
g_free (input);
jpeg_destroy_compress (&info);
free (data);
return g_bytes_new_with_free_func (data, size, (GDestroyNotify) free, NULL);
}