diff options
author | Steve Grubb <sgrubb@redhat.com> | 2009-09-25 16:23:02 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-10-02 11:18:16 +0200 |
commit | 2e926fb0168ba0249dfbbcca71ff685e4235e1c7 (patch) | |
tree | 6113833bd98ccc40d16740fc2d4a9927990ef5c1 /tools/l2ping.c | |
parent | 11091ffeeb39fd7a764925b3f146096c48b32407 (diff) | |
download | bluez-2e926fb0168ba0249dfbbcca71ff685e4235e1c7.tar.gz |
Fix memory leaks
I was doing some code reviews of the 4.54 release and found a few memory
leaks. These are mostly in error paths.
Diffstat (limited to 'tools/l2ping.c')
-rw-r--r-- | tools/l2ping.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/l2ping.c b/tools/l2ping.c index 55597cc62..5d26ea657 100644 --- a/tools/l2ping.c +++ b/tools/l2ping.c @@ -240,6 +240,8 @@ static void ping(char *svr) id = ident; } stat(0); + free(send_buf); + free(recv_buf); return; error: |