diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2022-06-24 10:25:41 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2022-06-27 10:22:10 +0200 |
commit | 1d6cfb8e625a944010956714c1802bc1e1fc6c4f (patch) | |
tree | 9f49d1a478d763f998571bec0a3dda7c12e4da1b /monitor | |
parent | 65f7faf5a3d0dcd63c14467a3a2bda317287e330 (diff) | |
download | bluez-1d6cfb8e625a944010956714c1802bc1e1fc6c4f.tar.gz |
monitor: Fix crash when using RTT backend
This fix regression introduced by "monitor: Fix memory leaks".
J-Link shared library is in use if jlink_init() returns 0 and thus
handle shall not be closed.
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/jlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/jlink.c b/monitor/jlink.c index f1d8ce660..f9d4037f4 100644 --- a/monitor/jlink.c +++ b/monitor/jlink.c @@ -112,7 +112,7 @@ int jlink_init(void) return -EIO; } - dlclose(so); + /* don't dlclose(so) here cause symbols from it are in use now */ return 0; } |