]> granicus.if.org Git - curl/commit
llist: no longer uses malloc
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Apr 2017 13:10:04 +0000 (15:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 22 Apr 2017 09:25:27 +0000 (11:25 +0200)
commitcbae73e1dd95946597ea74ccb580c30f78e3fa73
tree56697b9325403031bb2fcfc6a723719b9819b0be
parentcbb59ed9ce9555e0dc0b485247fe86f0e45006b3
llist: no longer uses malloc

The 'list element' struct now has to be within the data that is being
added to the list. Removes 16.6% (tiny) mallocs from a simple HTTP
transfer. (96 => 80)

Also removed return codes since the llist functions can't fail now.

Test 1300 updated accordingly.

Closes #1435
13 files changed:
lib/conncache.c
lib/fileinfo.c
lib/fileinfo.h
lib/ftplistparser.c
lib/hash.c
lib/hash.h
lib/llist.c
lib/llist.h
lib/multi.c
lib/multihandle.h
lib/pipeline.c
lib/urldata.h
tests/unit/unit1300.c