Fix two small memory leaks by eliminating pointless strdup() calls.