mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 16:19:20 +02:00
fixed memleak in tests
This commit is contained in:
parent
ac1cb81dec
commit
b135525c4f
|
@ -50,6 +50,8 @@ START_TEST(test_base32_encode)
|
||||||
fail_unless(strcmp(buf, testpairs[i].b) == 0,
|
fail_unless(strcmp(buf, testpairs[i].b) == 0,
|
||||||
va_str("'%s' != '%s'", buf, testpairs[i].b));
|
va_str("'%s' != '%s'", buf, testpairs[i].b));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(buf);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
@ -71,6 +73,8 @@ START_TEST(test_base32_decode)
|
||||||
fail_unless(strcmp(buf, testpairs[i].a) == 0,
|
fail_unless(strcmp(buf, testpairs[i].a) == 0,
|
||||||
va_str("'%s' != '%s'", buf, testpairs[i].a));
|
va_str("'%s' != '%s'", buf, testpairs[i].a));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(buf);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue