Commit e5e55c1b32e7daae02f0c47856056aedd2422488
Free pthread_key in bg_init() on error
Not that it matters much because the program will exit on failure, but
still.
Author: xaizek
Author date (UTC): 2024-03-11 13:26
Committer name: xaizek
Committer date (UTC): 2024-03-11 17:30
Parent(s): 485764f7e0878fb8fb1ce7233b12588ff490ad35
Signing key: 99DC5E4DB05F6BE2
Tree: bbb50fb77b845749ba3543603af04f53fc4dec74
File src/background.c changed (mode: 100644) (index 7ba30d8ef..4183f545c) |
... |
... |
bg_init(void) |
161 |
161 |
pthread_t id; |
pthread_t id; |
162 |
162 |
if(pthread_create(&id, NULL, &error_thread, NULL) != 0) |
if(pthread_create(&id, NULL, &error_thread, NULL) != 0) |
163 |
163 |
{ |
{ |
|
164 |
|
pthread_key_delete(current_job); |
164 |
165 |
return 1; |
return 1; |
165 |
166 |
} |
} |
166 |
167 |
|
|