mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3:dbwrap: don't leak in dbwrap_change_int32_atomic().
Michael
This commit is contained in:
parent
80abb95ead
commit
de2846012b
@ -167,7 +167,8 @@ NTSTATUS dbwrap_change_int32_atomic(struct db_context *db, const char *keystr,
|
||||
val = IVAL(rec->value.dptr, 0);
|
||||
*oldval = val;
|
||||
} else {
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
ret = NT_STATUS_UNSUCCESSFUL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
val += change_val;
|
||||
@ -177,8 +178,8 @@ NTSTATUS dbwrap_change_int32_atomic(struct db_context *db, const char *keystr,
|
||||
|
||||
ret = rec->store(rec, data, TDB_REPLACE);
|
||||
|
||||
done:
|
||||
TALLOC_FREE(rec);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user