Skip to content

Commit

Permalink
Pad needed a free. Ran all test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlparkhurst committed May 10, 2024
1 parent 6c90534 commit ff5876b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PBasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3211,13 +3211,15 @@ factor(struct LOC_exec * LINK)
case tokpad_:
case tokpad:
{
char* str;
n.stringval = true;
require(toklp, LINK);
string1 = strexpr(LINK);
str = strexpr(LINK);
require(tokcomma, LINK);
i = intexpr(LINK);
require(tokrp, LINK);
n.UU.sval = PhreeqcPtr->string_pad(string1, i);
n.UU.sval = PhreeqcPtr->string_pad(str, i);
PhreeqcPtr->PHRQ_free(str);
}
break;

Expand Down

0 comments on commit ff5876b

Please # to comment.