diff options
Diffstat (limited to 'source/tdb/spinlock.c')
-rw-r--r-- | source/tdb/spinlock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/tdb/spinlock.c b/source/tdb/spinlock.c index b00d115dde7..74472854cf2 100644 --- a/source/tdb/spinlock.c +++ b/source/tdb/spinlock.c @@ -1,6 +1,5 @@ /* - Unix SMB/Netbios implementation. - Version 3.0 + Unix SMB/CIFS implementation. Samba database functions Copyright (C) Anton Blanchard 2001 @@ -384,11 +383,11 @@ int tdb_create_rwlocks(int fd, unsigned int hash_size) /* Write it out (appending to end) */ if (write(fd, rwlocks, size) != size) { - SAFE_FREE(rwlocks); + free(rwlocks); return -1; } smp_machine = this_is_smp(); - SAFE_FREE(rwlocks); + free(rwlocks); return 0; } |