Do not free http_info in client request thread 90/244290/1
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 17 Sep 2020 01:47:58 +0000 (10:47 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 17 Sep 2020 02:05:38 +0000 (11:05 +0900)
commit59ae66abbb18fc1d4dd8d60bd571c056f71fe293
tree1e449995dd7573e232941421964c9c96fede8531
parent4f83ede6ba3f4fb4fa349770c52cc9ce57d0a42e
Do not free http_info in client request thread

http_info is used in download thread and it is freed if download is
finished.

However, in pause state, client request thread releases http_info if
client requests 'cancel'.
This makes a crash occasionally during download thread is terminating.

So, download thread should have ownership of http_info and this thread
should free it only.

Change-Id: Ia3ec64d1ce64e2aee49e260b901686a4ae6d4d76
agent/download-agent-dl-info.c
agent/download-agent-http-mgr.c
agent/include/download-agent-dl-info.h
packaging/download-provider.spec