about summary refs log tree commit homepage
path: root/iostat_process.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-05-01 19:17:48 -0700
committerEric Wong <normalperson@yhbt.net>2012-05-01 19:17:48 -0700
commit39bb21ea9f0f95a1d4117fa3e174f794fb78f445 (patch)
tree8bd30c147e99b99226c97517cc281dc512175a71 /iostat_process.c
parent7db031ed20cee6ca49628e9b5f10d0811bff0647 (diff)
downloadcmogstored-39bb21ea9f0f95a1d4117fa3e174f794fb78f445.tar.gz
Ugh, free() should take "const void *", not "void *",
now we have a hacky mog_free() function which wraps
free().
Diffstat (limited to 'iostat_process.c')
-rw-r--r--iostat_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iostat_process.c b/iostat_process.c
index d806366..648536b 100644
--- a/iostat_process.c
+++ b/iostat_process.c
@@ -130,7 +130,7 @@ static pid_t iostat_fork_exec(int out_fd)
                 syslog(LOG_CRIT, "execl(%s) failed: %m", cmd);
                 abort();
         }
-        free(cmd);
+        mog_free(cmd);
         return iostat_pid;
 }