diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2011-11-26 08:23:25 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2011-11-26 08:23:25 +0000 |
| commit | 16bf182b7a2d83b0efcb14524437194da410549d (patch) | |
| tree | 1f8d7ee4d74ce00d1ac9c402077473da21f0d6ed | |
| parent | 946b98f4bea13fbc517512bcfbc1bad689111849 (diff) | |
Notes
| -rw-r--r-- | lib/librt/timer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/librt/timer.c b/lib/librt/timer.c index f02e7616bd1f..90269c265dae 100644 --- a/lib/librt/timer.c +++ b/lib/librt/timer.c @@ -102,12 +102,14 @@ __timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid) } if (__sigev_check_init()) { + free(timer); errno = EINVAL; return (-1); } sn = __sigev_alloc(SI_TIMER, evp, NULL, 0); if (sn == NULL) { + free(timer); errno = EAGAIN; return (-1); } |
