about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDaniel <steew0x8@protonmail.com>2021-11-07 17:45:58 +0100
committerDaniel <steew0x8@protonmail.com>2021-11-07 17:45:58 +0100
commit079a624771f697a90b478f11d98ae36119b82529 (patch)
tree093089ec9ffbd9a8f6273ebc6cb2b8bee2307e94
parentddf01e170fb6bc56f0c44176d0ccad77d6e1beda (diff)
downloadrpncalc-079a624771f697a90b478f11d98ae36119b82529.tar.gz
remove obsolete free
-rw-r--r--main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/main.c b/main.c
index b4c092f..c8b10e6 100644
--- a/main.c
+++ b/main.c
@@ -77,7 +77,6 @@ int main() {
 	/* check for special commands, else pass to exec() */
 	if (strcmp(buf, "quit") == 0) {
 	  fprintf(s.defout, "quitting, bye!\n");
-	  free (s.sorted);
 	  exit(0);
 	} else if (strcmp(buf, "list") == 0) {
 	  for (int i = 0; i < s.numel; i++) {
@@ -99,7 +98,5 @@ int main() {
       fprintf(s.defout,"%d → %f\n",i, s.stk.val[i]);
     }
   }
-  /* free stuff */
-  free (s.sorted);
 }