浏览代码

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 年之前
父节点
当前提交
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) {