Diff between 790795f600f30187f16ef4cd5ce5214fd7599e3f and 9aaa38fd3bb2cba0067a23df679cda6483af4102

Changed Files

File Additions Deletions Status
android/health.c +5 -0 modified

Full Patch

diff --git a/android/health.c b/android/health.c
index f49110a..2c05fb8 100644
--- a/android/health.c
+++ b/android/health.c
@@ -162,12 +162,17 @@ static void unref_mdl(struct health_channel *channel)
 static void free_health_channel(void *data)
 {
 	struct health_channel *channel = data;
+	int fd;
 
 	DBG("channel %p", channel);
 
 	if (!channel)
 		return;
 
+	fd = mcap_mdl_get_fd(channel->mdl);
+	if (fd >= 0)
+		shutdown(fd, SHUT_RDWR);
+
 	unref_mdl(channel);
 	free(channel);
 }