Hans Leidekker : snmpapi: Fix a memory leak in the test.

Alexandre Julliard julliard at winehq.org
Mon Jul 21 08:51:19 CDT 2008


Module: wine
Branch: master
Commit: b72d6360621c6c09fa2d01feba809b6caf473d79
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b72d6360621c6c09fa2d01feba809b6caf473d79

Author: Hans Leidekker <hans at 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)




More information about the wine-cvs mailing list