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