diff options
-rw-r--r-- | tests/decoder.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/decoder.c b/tests/decoder.c index 2298d93..3678410 100644 --- a/tests/decoder.c +++ b/tests/decoder.c @@ -388,11 +388,14 @@ END_TEST START_TEST(test_doc_get) { struct srd_decoder *dec; + char *doc; srd_init(DECODERS_TESTDIR); srd_decoder_load("uart"); dec = srd_decoder_get_by_id("uart"); - fail_unless(srd_decoder_doc_get(dec) != NULL); + doc = srd_decoder_doc_get(dec); + fail_unless(doc != NULL); + g_free(doc); srd_exit(); } END_TEST |