artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd3101
)
Don't leak 'sec' in error path.
author
krw
<krw@openbsd.org>
Mon, 10 Oct 2022 14:52:02 +0000
(14:52 +0000)
committer
krw
<krw@openbsd.org>
Mon, 10 Oct 2022 14:52:02 +0000
(14:52 +0000)
usr.bin/cdio/rip.c
patch
|
blob
|
history
diff --git
a/usr.bin/cdio/rip.c
b/usr.bin/cdio/rip.c
index
3ff1c8e
..
0c198e6
100644
(file)
--- a/
usr.bin/cdio/rip.c
+++ b/
usr.bin/cdio/rip.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rip.c,v 1.
19 2022/10/07 19:59:19
krw Exp $ */
+/* $OpenBSD: rip.c,v 1.
20 2022/10/10 14:52:02
krw Exp $ */
/*
* Copyright (c) 2007 Alexey Vatchenko <av@bsdua.org>
@@
-402,6
+402,7
@@
read_track(struct track *ti)
(sio_write(ti->hdl, sec, blksize) == 0)) {
sio_close(ti->hdl);
ti->hdl = NULL;
+ free(sec);
fprintf(stderr, "\nerror while writing to audio "
"output\n");
return (-1);