Fix double free.
[kai/samba.git] / source4 / lib / registry / ldb.c
index 0aa44fa468da98b8717c5ad19a65b8a175e81775..7d78ba1a8f63d9116f342613459018b52ae0e773 100644 (file)
@@ -391,7 +391,6 @@ static WERROR ldb_get_value(TALLOC_CTX *mem_ctx, struct hive_key *k,
                talloc_free(res);
        }
 
-       talloc_free(res);
        return WERR_OK;
 }