Backport of "ristsrc: Only free caps if needed" into 1.24
Backport of !6432 (merged) "ristsrc: Only free caps if needed".
Commits:
- 778381fb ristsrc: Clean caps instead of unref
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Backport of !6432 (merged) "ristsrc: Only free caps if needed".
Commits: