@BSzili
I take it you're using the libpixman-1 static library that gets built as part of pixman-1.library?
If so, the reason that you are getting the error message when running the program from CLI and exiting is that I use there AllocTaskMemEntry() to implement LTS (local thread storage). The reason I do it this way is that this type of memory gets automatically freed on task/process exit and is easily accessible from the tc_MemEntry list in the Task/Process structure.
The only minor problem is that when a program is started from CLI it is run on the context of the existing CLI process, which then complains if the program returns with this memory allocation still in the tc_MemEntry list. In the shared library I've currently fixed it by adding a call to tls_fast_path_cache_free() in the library Close() function.
For a static build you should be able to fix it by adding a destructor function like so:
void tls_fast_path_cache_free(void);
__attribute__((destructor)) static void _cleanup_pixman(void)
{
/* Free TLS data */
tls_fast_path_cache_free();
}