Commit 89bd0510 authored by Matt Turner's avatar Matt Turner Committed by Mikhail Gusarov

record: move free() to after last use of pContext

No functional change, since free doesn't change the value of the pointer
passed to it, but it makes this code less confusing.
Reviewed-by: Jamey Sharp's avatarJamey Sharp <jamey@minilop.net>
Signed-off-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
parent a54a766d
......@@ -2520,8 +2520,6 @@ RecordDeleteContext(pointer value, XID id)
}
}
free(pContext);
/* remove context from AllContexts list */
if (-1 != (i = RecordFindContextOnAllContexts(pContext)))
......@@ -2533,6 +2531,8 @@ RecordDeleteContext(pointer value, XID id)
ppAllContexts = NULL;
}
}
free(pContext);
return Success;
} /* RecordDeleteContext */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment