registry: free talloc context on error path in regdb_fetch_values().
authorMichael Adam <obnox@samba.org>
Wed, 7 May 2008 11:26:13 +0000 (13:26 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 8 May 2008 16:29:09 +0000 (18:29 +0200)
Michael
(This used to be commit 978aef3a862065be856b36b38d72d581c3ac0ba1)

source3/registry/reg_backend_db.c

index 658c979bb2b1ba30479b77954799a3a6da478561..061ae1ccdb1cfa3706cb08fa2ff5b61bf7af0de9 100644 (file)
@@ -979,7 +979,7 @@ int regdb_fetch_values( const char* key, REGVAL_CTR *values )
 
        keystr = talloc_asprintf(ctx, "%s/%s", REG_VALUE_PREFIX, key);
        if (!keystr) {
-               return 0;
+               goto done;
        }
 
        values->seqnum = regdb_get_seqnum();