r23756: Fix Coverity id 388
authorVolker Lendecke <vlendec@samba.org>
Mon, 9 Jul 2007 07:55:09 +0000 (07:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:52 +0000 (12:23 -0500)
(This used to be commit 91af086823265ed66bbd0bdc1cced070b7dd0629)

source3/lib/util_reg_api.c

index a4fb0261e310940b714332044c1efea483e3b2a6..43ad347d4b8833a4b81c9abb3740b40ee341b091 100644 (file)
@@ -82,6 +82,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx,
 
                if (length + 2 < length) {
                        /* Integer wrap. */
+                       SAFE_FREE(tmp);
                        err = WERR_INVALID_PARAM;
                        goto error;
                }