Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/udebug/udebug_ops.c

    r87a2f9b rfeeac0d  
    375375        if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
    376376                mutex_unlock(&TASK->udebug.lock);
    377                 free(id_buffer);
    378377                return EINVAL;
    379378        }
     
    457456int udebug_args_read(thread_t *thread, void **buffer)
    458457{
     458        /* Prepare a buffer to hold the arguments. */
     459        sysarg_t *arg_buffer = malloc(6 * sizeof(sysarg_t), 0);
     460       
    459461        /* On success, this will lock t->udebug.lock. */
    460462        int rc = _thread_op_begin(thread, false);
     
    469471        }
    470472       
    471         /* Prepare a buffer to hold the arguments. */
    472         sysarg_t *arg_buffer = malloc(6 * sizeof(sysarg_t), 0);
    473        
    474473        /* Copy to a local buffer before releasing the lock. */
    475474        memcpy(arg_buffer, thread->udebug.syscall_args, 6 * sizeof(sysarg_t));
     
    500499int udebug_regs_read(thread_t *thread, void **buffer)
    501500{
     501        /* Prepare a buffer to hold the data. */
     502        istate_t *state_buf = malloc(sizeof(istate_t), 0);
     503       
    502504        /* On success, this will lock t->udebug.lock */
    503505        int rc = _thread_op_begin(thread, false);
     
    510512                return EBUSY;
    511513        }
    512        
    513         /* Prepare a buffer to hold the data. */
    514         istate_t *state_buf = malloc(sizeof(istate_t), 0);
    515514       
    516515        /* Copy to the allocated buffer */
Note: See TracChangeset for help on using the changeset viewer.