[PATCH] main: Memory leak in option_debug

2011-08-31 Thread Jukka Rissanen
--- Hi, this is very minor issue but makes it easier to spot real problems from valgrind output if this is not reported. Jukka src/main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/main.c b/src/main.c index 959a43f..22d0b27 100644 --- a/src/main.c +++ b/src/m

[PATCH] gsupplicant: Do not access IE array past end of buffer.

2011-08-31 Thread Jukka Rissanen
IE list was traversed past buffer limit in the last round. --- gsupplicant/supplicant.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index e5743f0..2586075 100644 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/sup

[PATCH] test: Fix dbus path in service-move-before script.

2011-08-31 Thread Jukka Rissanen
Because of patch f8ef8b2a7f7ef1bd9e26df6cfb19a838e6b10b17 that removed profile support, the path needs to be changed. --- test/service-move-before |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/service-move-before b/test/service-move-before index f1fddd1..d912c88

[PATCH] valgrind: Suppression file for connman.

2011-08-31 Thread Jukka Rissanen
Suppress the valgrind warnings/errors that we cannot control. Use the file like this: valgrind --leak-check=full --suppressions=.valgrind.suppressions --show-reachable=yes ./src/connmand -n -d --- .valgrind.suppressions | 71 1 files changed, 71

[PATCH] gresolv: Fix buffer size.

2011-08-31 Thread Jukka Rissanen
Make buf just big enough and initialize it in order to get rid of valgrind error (accessing uninitialized memory). --- gweb/gresolv.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gweb/gresolv.c b/gweb/gresolv.c index d857e01..0e7a755 100644 --- a/gweb/gresolv.c +

[PATCH] timezone: Do not access already released memory.

2011-08-31 Thread Jukka Rissanen
closedir() releases the filename but we were accessing it later. --- src/timezone.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/timezone.c b/src/timezone.c index 08f904f..1234622 100644 --- a/src/timezone.c +++ b/src/timezone.c @@ -185,9 +185,10 @@ static char