If it is actually malware, then something will have loaded it, which comes from the hdd or something like a flash drive you connected to the computer. It won't hurt to scan the memory, in your case it might have helped you, so I strongly suggest keep that option on. If avast does not find an infected file on the hdd and what resides in meory was not a false positive, then consider using something else to scan.