Permalink
Browse files

Corrected a leak in wjecli

  • Loading branch information...
1 parent 73fb3a7 commit 06050750a67c620345c98d733dba2305e3c67140 @minego minego committed Dec 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/cli/cmds.c
View
4 src/cli/cmds.c
@@ -494,6 +494,10 @@ static int WJECLISet(WJElement *doc, WJElement *current, char *line)
WJECloseDocument(n);
}
+ if (reader) {
+ WJRCloseDocument(reader);
+ }
+
return(r);
}

0 comments on commit 0605075

Please sign in to comment.