Commit f013c0d
committed
Avoid memory leak on error path
This isn't covered by the tests, but manually failing this allocation in
vgdb results in a leak otherwise:
268,096 (5,952 direct, 262,144 indirect) bytes in 1 blocks are definitely lost
in loss record 1,574 of 1,601
at 0x48407B4: malloc (vg_replace_malloc.c:381)
by 0x74ACD86: deflateInit2_ (in /lib/x86_64-linux-gnu/libz.so.1.2.13)
by 0x90EA5232: init_stream (fwrite.c:576)
by 0x90EA5EB0: fwriteMain (fwrite.c:806)
by 0x90EA79EE: fwriteR (fwriteR.c:310)1 parent b17832e commit f013c0d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| 826 | + | |
826 | 827 | | |
827 | 828 | | |
828 | 829 | | |
| |||
0 commit comments