diff options
-rw-r--r-- | apps/shortcuts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 9955b7f19d..7b224dde2f 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c | |||
@@ -372,8 +372,11 @@ void shortcuts_init(void) | |||
372 | if (fd < 0) | 372 | if (fd < 0) |
373 | return; | 373 | return; |
374 | first_handle = core_alloc_ex("shortcuts_head", sizeof(struct shortcut_handle), &shortcut_ops); | 374 | first_handle = core_alloc_ex("shortcuts_head", sizeof(struct shortcut_handle), &shortcut_ops); |
375 | if (first_handle <= 0) | 375 | if (first_handle <= 0) { |
376 | close(fd); | ||
376 | return; | 377 | return; |
378 | } | ||
379 | |||
377 | h = core_get_data(first_handle); | 380 | h = core_get_data(first_handle); |
378 | h->next_handle = 0; | 381 | h->next_handle = 0; |
379 | 382 | ||