diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2014-05-07 17:15:22 +0200 |
---|---|---|
committer | Bryce Harrington <b.harrington@samsung.com> | 2014-05-16 11:11:34 -0700 |
commit | 247cfaaa2562d28ee39a5a35eea9772ee365937b (patch) | |
tree | 117c31bce1711283a4799d24c09e85955c6e26e5 /test/pdf-mime-data.c | |
parent | 5e7b724dd3ed13c7c5a6ffe3874ad21b7fbe2176 (diff) | |
download | cairo-247cfaaa2562d28ee39a5a35eea9772ee365937b.tar.gz |
Fix some memory leaks found by scan-build, the LLVM/Clang static analyzer
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Reviewed-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/pdf-mime-data.c')
-rw-r--r-- | test/pdf-mime-data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pdf-mime-data.c b/test/pdf-mime-data.c index c575c4add..e2c529ecd 100644 --- a/test/pdf-mime-data.c +++ b/test/pdf-mime-data.c @@ -105,6 +105,7 @@ preamble (cairo_test_context_t *ctx) test_status = read_file (ctx, IMAGE_FILE ".jpg", &data, &len); if (test_status) { cairo_test_log (ctx, "Could not read input jpeg file %s\n", IMAGE_FILE ".jpg"); + free(data); return test_status; } @@ -149,6 +150,7 @@ preamble (cairo_test_context_t *ctx) test_status = read_file (ctx, IMAGE_FILE ".jpg", &data, &len); if (test_status) { cairo_test_log (ctx, "Could not read input jpeg file %s\n", IMAGE_FILE ".jpg"); + free(data); return test_status; } |