Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102040562
D47266.id145405.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
524 B
Referenced Files
None
Subscribers
None
D47266.id145405.diff
View Options
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -147,7 +147,9 @@
parse:
while (argc > 0) {
- if ((p = strdup(*argv)) == NULL)
+ char *orig;
+
+ if ((orig = p = strdup(*argv)) == NULL)
err(1, "strdup(%s)", *argv);
/* Check if we're using the shorthand syntax for volume setting. */
@@ -200,7 +202,7 @@
/* Input: `dev.control=val`. */
cp->mod(cp->parent_dev, valstr);
next:
- free(p);
+ free(orig);
argc--;
argv++;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 8:59 PM (10 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14328118
Default Alt Text
D47266.id145405.diff (524 B)
Attached To
Mode
D47266: mixer: Fix a bogus free() call in the main loop
Attached
Detach File
Event Timeline
Log In to Comment