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 <jamey@minilop.net>
Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Matt Turner 2010-06-04 21:09:35 -04:00 committed by Mikhail Gusarov
parent a54a766dfb
commit 89bd05106e

View File

@ -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 */