diff options
| author | armink <[email protected]> | 2019-01-28 19:48:14 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2019-01-28 19:48:14 +0800 |
| commit | 991c919deac3c8060541a3b9a32cf66aad3f72b8 (patch) | |
| tree | 868a0b65aff4c39e36d1b0019826507d492a09f7 /components/drivers/src/ringbuffer.c | |
| parent | b7996af1862800b80c756329dcbf1a8496651a81 (diff) | |
Sync from master (aa1e41d04f6b7b37786b1d88f492701e9d4acf5a)
Diffstat (limited to 'components/drivers/src/ringbuffer.c')
| -rw-r--r-- | components/drivers/src/ringbuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/drivers/src/ringbuffer.c b/components/drivers/src/ringbuffer.c index 2e078ae053..0acdbbd38c 100644 --- a/components/drivers/src/ringbuffer.c +++ b/components/drivers/src/ringbuffer.c @@ -340,6 +340,7 @@ struct rt_ringbuffer* rt_ringbuffer_create(rt_uint16_t size) if (pool == RT_NULL) { rt_free(rb); + rb = RT_NULL; goto exit; } rt_ringbuffer_init(rb, pool, size); |
