Commit a36ca79
committed
btrfs-progs: sb-mod: clean up used memory
ASAN build reports that there are some leaks:
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x7f7fa15200e4 in strdup (/lib64/libasan.so.8+0x1200e4)
#1 0x000000579d7e in main /home/ds/x/g/btrfs-progs/btrfs-sb-mod.c:417
#2 0x7f7fa102b2fa in __libc_start_call_main (/lib64/libc.so.6+0x2b2fa)
#3 0x7ffce11eee69 ([stack]+0x20e69)
SUMMARY: AddressSanitizer: 7 byte(s) leaked in 1 allocation(s).
It's the operation name, so free it after it's processed.
Signed-off-by: David Sterba <dsterba@suse.com>1 parent f3e6118 commit a36ca79
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
0 commit comments