Also avoid an "else" branch
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
*/
share_mode_memcache_store(static_share_mode_data);
static_share_mode_data = NULL;
- } else {
- /*
- * The next opener of this file will find an empty
- * locking.tdb record. Don't store the share_mode_data
- * in the memcache, fresh_share_mode_lock() will
- * generate a fresh seqnum anyway, obsoleting the
- * cache entry.
- */
- TALLOC_FREE(static_share_mode_data);
}
+ TALLOC_FREE(static_share_mode_data);
return 0;
}