1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-21 18:30:15 -04:00

temporary fixes & removal of unused function

This commit is contained in:
nova
2025-10-11 21:49:28 +02:00
parent 3fa16fd8b2
commit 61023ce42e
3 changed files with 27 additions and 23 deletions

View File

@@ -247,7 +247,7 @@ void *thread_top(){
pthread_exit(0);
}
void *thread_btm(){
char *path = malloc(sizeof(char));
char *path = NULL;
char *ui_btm_right_block = malloc(sizeof(char));
unsigned int ui_btm_right_block_size = 0;
unsigned int buffer_width = 0;
@@ -271,7 +271,14 @@ void *thread_btm(){
pthread_mutex_unlock(&mutex_mid);
free(path);
if (path != NULL) {
/* sometimes NULL remains, need to do deeper analysis soon */
free(path);
path = NULL;
} else {
volatile static int debug_thread_btm;
debug_thread_btm++;
}
free(ui_btm_right_block);
path = getcwd(NULL, 0);