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:
parent
a54a766dfb
commit
89bd05106e
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user