Fix silly crash bug in FAST_SHARE_MODES (same bug as was in
[kai/samba.git] / source3 / locking / locking.c
index 64dc207cb7dd2756bf146b3c6527dd4829491424..f579a75a0bc17b3c1767e2ff6975c2819f887d64 100644 (file)
@@ -301,7 +301,7 @@ record mode 0x%X pid=%d\n", entry_scanner_p->share_mode, entry_scanner_p->pid));
 hash bucket %d has a share mode record but no entries - deleting\n", 
                  dev, inode, hash_entry));
     if(*old_shares)
-      free((char *)old_shares);
+      free((char *)*old_shares);
     *old_shares = 0;
 
     if(file_prev_p == file_scanner_p)