added a debug log
This commit is contained in:
parent
0b4ab2c0a8
commit
79f4b5acf4
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ pmhandle_t *handle_new()
|
||||||
|
|
||||||
handle = (pmhandle_t *)malloc(sizeof(pmhandle_t));
|
handle = (pmhandle_t *)malloc(sizeof(pmhandle_t));
|
||||||
if(handle == NULL) {
|
if(handle == NULL) {
|
||||||
|
_alpm_log(PM_LOG_ERROR, "malloc failure: could not allocate %d bytes", sizeof(pmhandle_t));
|
||||||
RET_ERR(PM_ERR_MEMORY, NULL);
|
RET_ERR(PM_ERR_MEMORY, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue