diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-07-04 15:45:38 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-04 16:21:10 +0300 |
commit | 73529e535d7d1d8b8d5264dd5a2763972489845a (patch) | |
tree | 20fa88753c489debc4547f31d576586357e48ce3 /monitor/analyze.c | |
parent | 708ec91af779e4d8b51ad57c7eb718231561e692 (diff) | |
download | bluez-73529e535d7d1d8b8d5264dd5a2763972489845a.tar.gz |
monitor: Fix possible resource leak
This fixes following memory leak:
...
==14887== 24 bytes in 1 blocks are definitely lost in loss record 2 of 4
==14887== at 0x4C2CC70: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==14887== by 0x425B6C: btsnoop_open (btsnoop.c:83)
==14887== by 0x424837: analyze_trace (analyze.c:262)
==14887== by 0x40249A: main (main.c:189)
...
Diffstat (limited to 'monitor/analyze.c')
-rw-r--r-- | monitor/analyze.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/analyze.c b/monitor/analyze.c index a5ed5f4f6..5288cf3ac 100644 --- a/monitor/analyze.c +++ b/monitor/analyze.c @@ -272,7 +272,7 @@ void analyze_trace(const char *path) break; default: fprintf(stderr, "Unsupported packet format\n"); - return; + goto done; } dev_list = queue_new(); |