Fix leak in sb_read_file_alloc()
This commit is contained in:
1
gebs.h
1
gebs.h
@ -302,6 +302,7 @@ typedef struct {
|
|||||||
for (size_t __i = 0; __i < __size; __i++) { \
|
for (size_t __i = 0; __i < __size; __i++) { \
|
||||||
gebs_sb_append_char_alloc((alloc), (sb), __buf[__i]); \
|
gebs_sb_append_char_alloc((alloc), (sb), __buf[__i]); \
|
||||||
} \
|
} \
|
||||||
|
gebs_free((alloc), __buf); \
|
||||||
} \
|
} \
|
||||||
__ret; \
|
__ret; \
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user