File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,16 @@ file_lock_find_bucket(FAR const char *filepath)
292
292
return NULL ;
293
293
}
294
294
295
+ /****************************************************************************
296
+ * Name: file_lock_free_entry
297
+ ****************************************************************************/
298
+
299
+ static void file_lock_free_entry (FAR ENTRY * entry )
300
+ {
301
+ lib_free (entry -> key );
302
+ kmm_free (entry -> data );
303
+ }
304
+
295
305
/****************************************************************************
296
306
* Name: file_lock_create_bucket
297
307
****************************************************************************/
@@ -824,5 +834,6 @@ void file_initlk(void)
824
834
{
825
835
/* Initialize file lock context hash table */
826
836
837
+ g_file_lock_table .free_entry = file_lock_free_entry ;
827
838
hcreate_r (CONFIG_FS_LOCK_BUCKET_SIZE , & g_file_lock_table );
828
839
}
You can’t perform that action at this time.
0 commit comments