reflog_write: don't access free()'d memory
We get the oid of a reference, free the reference, then convert the oid to a string. We need to convert the oid before freeing the memory.
Showing
Please
register
or
sign in
to comment
We get the oid of a reference, free the reference, then convert the oid to a string. We need to convert the oid before freeing the memory.