summaryrefslogtreecommitdiffstats
path: root/src/modules/oss-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/oss-util.c')
-rw-r--r--src/modules/oss-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/oss-util.c b/src/modules/oss-util.c
index 5a939cf8..36498809 100644
--- a/src/modules/oss-util.c
+++ b/src/modules/oss-util.c
@@ -68,7 +68,7 @@ int pa_oss_open(const char *device, int *mode, int* pcaps) {
pa_log_warn("'%s' doesn't support full duplex", device);
- close(fd);
+ pa_close(fd);
}
if ((fd = open(device, (*mode = O_WRONLY)|O_NDELAY|O_NOCTTY)) < 0) {
@@ -147,7 +147,7 @@ success:
fail:
if (fd >= 0)
- close(fd);
+ pa_close(fd);
return -1;
}