mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Plug file descriptor leak.
Obtained from: Joe Drew <drew@debian.org>
This commit is contained in:
parent
613f841642
commit
1e9d7b18a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65113
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= mpg321
|
||||
PORTVERSION= 0.2.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= mpg321
|
||||
|
34
audio/mpg321/files/patch-mpg321.c
Normal file
34
audio/mpg321/files/patch-mpg321.c
Normal file
@ -0,0 +1,34 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- mpg321.c.orig Sun Mar 24 06:49:20 2002
|
||||
+++ mpg321.c Tue Aug 27 22:01:26 2002
|
||||
@@ -509,9 +509,6 @@
|
||||
|
||||
mad_decoder_finish(&decoder);
|
||||
|
||||
- if (quit_now)
|
||||
- break;
|
||||
-
|
||||
if (playbuf.frames)
|
||||
free(playbuf.frames);
|
||||
|
||||
@@ -521,6 +518,7 @@
|
||||
if (playbuf.fd == -1)
|
||||
{
|
||||
munmap(playbuf.buf, playbuf.length);
|
||||
+ close(fd);
|
||||
}
|
||||
|
||||
else
|
||||
@@ -535,10 +533,6 @@
|
||||
ao_close(playdevice);
|
||||
|
||||
ao_shutdown();
|
||||
-
|
||||
-#if defined(RAW_SUPPORT) || defined(HTTP_SUPPORT) || defined(FTP_SUPPORT)
|
||||
- if(fd) close(fd);
|
||||
-#endif
|
||||
|
||||
return(0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user