Hans Leidekker : snmpapi: Fix a memory leak in the test.
Module: wine Branch: master Commit: b72d6360621c6c09fa2d01feba809b6caf473d79 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b72d6360621c6c09fa2d01feba... Author: Hans Leidekker <hans(a)meelstraat.net> Date: Sat Jul 19 19:53:54 2008 +0200 snmpapi: Fix a memory leak in the test. --- dlls/snmpapi/tests/util.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/snmpapi/tests/util.c b/dlls/snmpapi/tests/util.c index 1aa245f..780556c 100644 --- a/dlls/snmpapi/tests/util.c +++ b/dlls/snmpapi/tests/util.c @@ -220,6 +220,7 @@ static void test_SnmpUtilOidCpyFree(void) ok(ret, "SnmpUtilOidCpy failed\n"); ok(src.idLength == dst.idLength, "SnmpUtilOidCpy failed\n"); ok(!memcmp(src.ids, dst.ids, dst.idLength * sizeof(UINT)), "SnmpUtilOidCpy failed\n"); + SnmpUtilOidFree(&dst); /* These crashes under win98 */ if(0)
participants (1)
-
Alexandre Julliard