diff options
Diffstat (limited to 'record/record.c')
-rw-r--r-- | record/record.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/record/record.c b/record/record.c index 53bdfec71..4117a5a02 100644 --- a/record/record.c +++ b/record/record.c @@ -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 */ |