From 5d2a053639026671690489661d18bb73eb685baf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 9 Aug 2012 10:59:23 -0400 Subject: [PATCH] Fixed memory leak. --- macosx_hidmanager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macosx_hidmanager.c b/macosx_hidmanager.c index a7b1e2c..b28792e 100644 --- a/macosx_hidmanager.c +++ b/macosx_hidmanager.c @@ -73,6 +73,8 @@ static char *get_device_name(IOHIDDeviceRef device) return NULL; } /* if */ + CFRelease(cfstr); + ptr = realloc(buf, strlen(buf) + 1); /* shrink down our allocation. */ if (ptr != NULL) buf = (char *) ptr;