Plug a possible memory leak
There is no need to check doc->real_path since the usage is NULL-safe,
and if it actually is empty or NULL it isn't a bug in the caller itself
anyway, and this could leak.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.