OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.c versions 1.94 and 1.95
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.c 1.94 -> 1.95

--- var.c        2003/02/10 20:50:53     1.94
+++ var.c        2003/02/10 21:12:47     1.95
@@ -1626,11 +1626,16 @@
                                               arg_ptr, arg_len,
                                               val_ptr, val_len,
                                               &out_ptr, &out_len, &out_size);
-                if (rc < 0)
+                if (rc < 0) {
+                    if (arg_ptr != NULL)
+                        free(arg_ptr);
                     goto error_return;
+                }
                 tokenbuf_free(data);
                 tokenbuf_set(data, out_ptr, out_ptr+out_len, out_size);
             }
+            if (arg_ptr != NULL)
+                free(arg_ptr);
             break;
         }
         default:

CVSTrac 2.0.1