]> granicus.if.org Git - nethack/commitdiff
Free the venom object, even if it is not thrown
authorPasi Kallinen <paxed@alt.org>
Sat, 31 Oct 2015 23:36:18 +0000 (01:36 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 31 Oct 2015 23:36:18 +0000 (01:36 +0200)
src/mthrowu.c

index 0613709082c85896540ef3fc63210d01221b390c..2a882e2d0b48bc750dc9459328e14c44af17bd83 100644 (file)
@@ -705,6 +705,9 @@ register struct attack *mattk;
                     distmin(mtmp->mx, mtmp->my, mtmp->mux, mtmp->muy), otmp);
             nomul(0);
             return 0;
+        } else {
+            obj_extract_self(otmp);
+            obfree(otmp, (struct obj *) 0);
         }
     }
     return 0;