Investors & landlords

I hope I understand this correctly. 

If I have two rental properties A and B and I sell A only for a gain, the unallowed passive losses from both properties A and B will be released.  Can someone confirm? Thanks