The call has been forgotten there during movement of code
to aqcpu_fra_activate(). On the other hand there should
be qres_cleanup if atexit fails.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
/* install the cleanup function of th AQuoSA framework as an exit
* handler function (quite futile but, for now, it's sufficent) */
- if (atexit(aqcpu_cleanup_wrapper))
+ if (atexit(aqcpu_cleanup_wrapper)) {
+ qres_cleanup();
return(FRSH_ERR_INTERNAL_ERROR);
+ }
aqcpu_initialized = 1;
int rv;
if ((rv = fra_register(&aqcpu_allocator))) {
- qres_cleanup();
return rv;
}