}
reg->registry = zmalloc(sizeof(struct buffer_reg_session));
- if (!reg) {
+ if (!reg->registry) {
PERROR("zmalloc buffer registry uid session");
ret = -ENOMEM;
goto error;
}
reg->registry = zmalloc(sizeof(struct buffer_reg_session));
- if (!reg) {
+ if (!reg->registry) {
PERROR("zmalloc buffer registry pid session");
ret = -ENOMEM;
goto error;