]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
move malloc_cleanup to common.c
authorMike Brady <mikebrady@eircom.net>
Wed, 23 Jan 2019 16:34:34 +0000 (16:34 +0000)
committerMike Brady <mikebrady@eircom.net>
Wed, 23 Jan 2019 16:34:34 +0000 (16:34 +0000)
common.c

index 8430c29d3a69dbfc853f2161a278c8322bad0b06..10c9cc9fa115b38e0e29e140745f7fc8149bbf27 100644 (file)
--- a/common.c
+++ b/common.c
@@ -1243,6 +1243,11 @@ int _debug_mutex_unlock(pthread_mutex_t *mutex, const char *mutexname, const cha
   return r;
 }
 
+void malloc_cleanup(void *arg) {
+  // debug(1, "malloc cleanup called.");
+  free(arg);
+}
+
 void pthread_cleanup_debug_mutex_unlock(void *arg) { pthread_mutex_unlock((pthread_mutex_t *)arg); }
 
 char *get_version_string() {