Commit 636e19c
committed
Avoid a double-free on the extra drainJournal call
The drainJournal() function frees a passed-in cursor and returns a new
one. The final call we made to drainJournal() in followJournal()
mistakenly discarded the updated cursor value, which would likely
produce a double-free error.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>1 parent baa9bbf commit 636e19c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
0 commit comments