From 07a07fadca4dad12d1ac86739e55804f81315c07 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Sat, 22 Feb 2014 21:54:45 +0100 Subject: [PATCH] android: Add --leak-check=full option to valgrin in system-emulator --- android/system-emulator.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/android/system-emulator.c b/android/system-emulator.c index 07ed2c78f..c0804f461 100644 --- a/android/system-emulator.c +++ b/android/system-emulator.c @@ -50,15 +50,16 @@ static pid_t snoop_pid = -1; static void ctl_start(void) { char prg_name[PATH_MAX + 1]; - char *prg_argv[3]; + char *prg_argv[4]; char *prg_envp[3]; pid_t pid; snprintf(prg_name, sizeof(prg_name), "%s/%s", exec_dir, "bluetoothd"); prg_argv[0] = "/usr/bin/valgrind"; - prg_argv[1] = prg_name; - prg_argv[2] = NULL; + prg_argv[1] = "--leak-check=full"; + prg_argv[2] = prg_name; + prg_argv[3] = NULL; prg_envp[0] = "G_SLICE=always-malloc"; prg_envp[1] = "G_DEBUG=gc-friendly"; -- 2.47.3