record: don't call RecordDeleteContext when AddResource fails
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Julien Cristau <jcristau@debian.org>
(cherry picked from commit 054f807178
)
This commit is contained in:
parent
dae9c195a9
commit
518a0c179f
|
@ -1878,7 +1878,6 @@ ProcRecordCreateContext(ClientPtr client)
|
|||
return Success;
|
||||
}
|
||||
else {
|
||||
RecordDeleteContext((void *) pContext, pContext->id);
|
||||
return BadAlloc;
|
||||
}
|
||||
bailout:
|
||||
|
|
Loading…
Reference in New Issue