2
0
Эх сурвалжийг харах

sl: don't remove the lump added in the 'after' list of delete lump

- they are destroyed together, making the operation useless
Daniel-Constantin Mierla 10 жил өмнө
parent
commit
338b00c0f2
1 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 2 3
      modules/sl/sl.c

+ 2 - 3
modules/sl/sl.c

@@ -437,9 +437,8 @@ restore:
 	if(reason!=NULL) {
 		if(ldel!=NULL) {
 			remove_lump(msg, ldel);
-		}
-		if(ladd!=NULL) {
-			remove_lump(msg, ladd);
+			/* ladd is liked in the 'after' list inside ldel,
+			 * destroyed together, no need for its own remove operation */
 		}
 	}
 	if(code!=NULL) {