Skip to content

Commit

Permalink
tests: fix bdrv-drain leak
Browse files Browse the repository at this point in the history
Spotted by ASAN:

=================================================================
==5378==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 65536 byte(s) in 1 object(s) allocated from:
    #0 0x7f788f83bc48 in malloc (/lib64/libasan.so.5+0xeec48)
    #1 0x7f788c9923c5 in g_malloc (/lib64/libglib-2.0.so.0+0x523c5)
    #2 0x5622a1fe37bc in coroutine_trampoline /home/elmarco/src/qq/util/coroutine-ucontext.c:116
    #3 0x7f788a15d75f in __correctly_grouped_prefixwc (/lib64/libc.so.6+0x4c75f)

(Broken in commit 4c8158e.)

Signed-off-by: Marc-André Lureau <[email protected]>
Message-id: [email protected]
Signed-off-by: Max Reitz <[email protected]>
  • Loading branch information
elmarco authored and XanClic committed Aug 31, 2018
1 parent 19b599f commit 7b43db3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test-bdrv-drain.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ static void coroutine_fn test_co_delete_by_drain(void *opaque)
}

dbdd->done = true;
g_free(buffer);
}

/**
Expand Down

0 comments on commit 7b43db3

Please sign in to comment.