--- a/libpurple/plugins/perl/perl-common.c Sun Apr 14 21:45:09 2013 +0200 +++ b/libpurple/plugins/perl/perl-common.c Mon Apr 15 00:48:17 2013 +0200 @@ -83,7 +83,8 @@ stash = gv_stashpv(stash_name, 1); hv = newHV(); - hv_store(hv, "_purple", 7, create_sv_ptr(object), 0); + if (hv_store(hv, "_purple", 7, create_sv_ptr(object), 0) == NULL) + purple_debug_error("perl", "hv_store failed\n"); return sv_bless(newRV_noinc((SV *)hv), stash); }