Skip to content

Commit 1638543

Browse files
czp182alandekok
authored andcommitted
removed redundant free
fclose(f) also frees oc, so talloc_free(oc) is not necessary (lib/util/fopencookie: fix double-free of cookie in fseek error path 159)
1 parent de3c4c2 commit 1638543

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib/util/fopencookie.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ FILE *fopencookie(void *cookie, const char *mode, cookie_io_functions_t io_funcs
183183
if (need & NEED_SEEK) {
184184
if (fseek(f, 0L, SEEK_END) < 0) {
185185
fclose(f);
186-
talloc_free(oc);
187186
return NULL;
188187
}
189188
}

0 commit comments

Comments
 (0)